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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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