Documentation ¶
Index ¶
- Variables
- type DevicesManager
- func (d *DevicesManager) AddDevice(device devtypes.Device)
- func (d *DevicesManager) AddDevicesFromPlugins(pluginNames []string)
- func (d *DevicesManager) AllocateDevices(pod *types.PodInfo, cont *types.ContainerInfo) ([]devtypes.Mount, []string, map[string]string, error)
- func (d *DevicesManager) CreateAndAddDeviceType(devType reflect.Type) error
- func (d *DevicesManager) NewAndAddDevice(t devtypes.Device) error
- func (d *DevicesManager) Start()
- func (d *DevicesManager) UpdateNodeInfo(info *types.NodeInfo)
Constants ¶
This section is empty.
Variables ¶
View Source
var DeviceManager = &DevicesManager{}
essentially a static variable
Functions ¶
This section is empty.
Types ¶
type DevicesManager ¶
DeviceManager manages multiple devices
func (*DevicesManager) AddDevice ¶
func (d *DevicesManager) AddDevice(device devtypes.Device)
AddDevice adds a device to the manager
func (*DevicesManager) AddDevicesFromPlugins ¶
func (d *DevicesManager) AddDevicesFromPlugins(pluginNames []string)
func (*DevicesManager) AllocateDevices ¶
func (d *DevicesManager) AllocateDevices(pod *types.PodInfo, cont *types.ContainerInfo) ([]devtypes.Mount, []string, map[string]string, error)
AllocateDevices allocates devices using device manager interface
func (*DevicesManager) CreateAndAddDeviceType ¶
func (d *DevicesManager) CreateAndAddDeviceType(devType reflect.Type) error
func (*DevicesManager) NewAndAddDevice ¶
func (d *DevicesManager) NewAndAddDevice(t devtypes.Device) error
func (*DevicesManager) UpdateNodeInfo ¶
func (d *DevicesManager) UpdateNodeInfo(info *types.NodeInfo)
UpdateNodeInfo updates a node info strucutre with resources available on device
Click to show internal directories.
Click to hide internal directories.