plugin

package
v0.0.0-...-3fc386c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

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) SetConfig

func (d *UsbDevicePlugin) SetConfig(cfg *base.Config) error

func (*UsbDevicePlugin) Stats

func (d *UsbDevicePlugin) Stats(ctx context.Context, interval time.Duration) (<-chan *device.StatsResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL