Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceManager ¶
type DeviceManager struct {
// contains filtered or unexported fields
}
DeviceManager performs various management operations on mig devices.
func NewDeviceManager ¶
func NewDeviceManager(devDirectory, procDirectory string) DeviceManager
NewDeviceManager creates a new DeviceManager to handle MIG devices on the node.
func (*DeviceManager) DeviceSpec ¶
func (d *DeviceManager) DeviceSpec(deviceID string) ([]pluginapi.DeviceSpec, error)
DeviceSpec returns the device spec that inclues list of devices to allocate for a deviceID.
func (*DeviceManager) ListGPUPartitionDevices ¶
func (d *DeviceManager) ListGPUPartitionDevices() map[string]pluginapi.Device
ListGPUPartitionDevices lists all the GPU partitions as devices that can be advertised as resources available on the node.
func (*DeviceManager) SetDeviceHealth ¶
func (d *DeviceManager) SetDeviceHealth(name string, health string)
SetDeviceHealth sets the health status for a GPU partition
func (*DeviceManager) Start ¶
func (d *DeviceManager) Start(partitionSize string) error
Start method performs the necessary initializations and starts the mig.DeviceManager.
Click to show internal directories.
Click to hide internal directories.