Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func USBResourceManager ¶
func USBResourceManager() *usbResourceManager
USBResourceManager initializes a new USB resource manager which implements the resource manager interface
Types ¶
type Device ¶
type Device struct { *pluginapi.Device Name string Major string Minor string BusNum string DevNum string DevName string DevPath string Serial string ProductId string VendorId string Product string Manufacturer string }
func (*Device) DeviceSpec ¶
func (d *Device) DeviceSpec() []*pluginapi.DeviceSpec
type ResourceManager ¶
type ResourceManager interface { Devices() []*pluginapi.Device DeviceMap() map[string]Device GetDeviceByID(id string) (Device, bool) // AllocateDevice function accepts the arguments: // AvailableDeviceIDs ([]string) // MustIncludeDeviceIDs ([]string) // AllocationSize (int32) AllocateDevice(available, required []string, size int32) }
Click to show internal directories.
Click to hide internal directories.