rm

package
v0.0.0-...-5ef5854 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

func (*Device) Is

func (d *Device) Is(d2 *Device) bool

func (*Device) Mounts

func (d *Device) Mounts() []*pluginapi.Mount

func (*Device) UniqueID

func (d *Device) UniqueID() string

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

Jump to

Keyboard shortcuts

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