package
0.0.0-20250313105706-6475ff5d0927
Repository: https://github.com/squat/generic-device-plugin.git
Documentation: pkg.go.dev

# Functions

NewGenericPlugin creates a new plugin for a generic device.
NewPlugin creates a new instance of a device plugin.
ToUSBIDHookFunc handles mapstructure decode of standard platform / vendor IDs.

# Constants

DevicePathType represents a file-system device node and is mounted as a device.
MountPathType represents an ordinary file-system node and is bind-mounted.

# Structs

DeviceSpec defines a device that should be discovered and scheduled.
GenericPlugin is a plugin for generic devices that can: * be found using either a file path or a USB identifier; and * mounted and used without special logic.
Group represents a set of devices that should be grouped and mounted into a container together as one single meta-device.
Path represents a file path that should be discovered.
USBSpec represents a USB device specification that should be discovered.

# Interfaces

Plugin is a Kubernetes device plugin that can be run.

# Type aliases

PathType represents the kinds of file-system nodes that can be scheduled.
USBID is a representation of a platform or vendor ID under the USB standard (see gousb.ID).