Documentation
¶
Index ¶
- Constants
- Variables
- type UsbDevicePlugin
- func (d *UsbDevicePlugin) ConfigSchema() (*hclspec.Spec, error)
- func (d *UsbDevicePlugin) Fingerprint(ctx context.Context) (<-chan *device.FingerprintResponse, error)
- func (d *UsbDevicePlugin) PluginInfo() (*base.PluginInfoResponse, error)
- func (d *UsbDevicePlugin) Reserve(deviceIds []string) (*device.ContainerReservation, error)
- func (d *UsbDevicePlugin) SetConfig(cfg *base.Config) error
- func (d *UsbDevicePlugin) Stats(ctx context.Context, interval time.Duration) (<-chan *device.StatsResponse, error)
Constants ¶
View Source
const ( // Human Readable Attributes Vendor = "vendor" Product = "product" Description = "description" Classification = "classification" Serial = "serial" // Id Attributes VendorId = "vendor_id" ProductId = "product_id" ClassId = "class_id" SubClassId = "sub_class_id" ProtocolId = "protocol_id" )
Variables ¶
View Source
var (
ErrPluginDisabled = fmt.Errorf("USB device plugin is not enabled")
)
Functions ¶
This section is empty.
Types ¶
type UsbDevicePlugin ¶
type UsbDevicePlugin struct {
// contains filtered or unexported fields
}
func NewUsbDevicePlugin ¶
func NewUsbDevicePlugin(log log.Logger) *UsbDevicePlugin
func (*UsbDevicePlugin) ConfigSchema ¶
func (d *UsbDevicePlugin) ConfigSchema() (*hclspec.Spec, error)
func (*UsbDevicePlugin) Fingerprint ¶
func (d *UsbDevicePlugin) Fingerprint(ctx context.Context) (<-chan *device.FingerprintResponse, error)
func (*UsbDevicePlugin) PluginInfo ¶
func (d *UsbDevicePlugin) PluginInfo() (*base.PluginInfoResponse, error)
func (*UsbDevicePlugin) Reserve ¶
func (d *UsbDevicePlugin) Reserve(deviceIds []string) (*device.ContainerReservation, error)
func (*UsbDevicePlugin) Stats ¶
func (d *UsbDevicePlugin) Stats(ctx context.Context, interval time.Duration) (<-chan *device.StatsResponse, error)
Click to show internal directories.
Click to hide internal directories.