Documentation ¶
Index ¶
- type DeviceInfo
- func (di *DeviceInfo) AnyMigEnabledDeviceIsEmpty() (bool, error)
- func (di *DeviceInfo) GetAllMigDevices() ([]resource.Device, error)
- func (di *DeviceInfo) GetDevicesMap() (map[bool][]resource.Device, error)
- func (di *DeviceInfo) GetDevicesWithMigDisabled() ([]resource.Device, error)
- func (di *DeviceInfo) GetDevicesWithMigEnabled() ([]resource.Device, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceInfo ¶
type DeviceInfo struct {
// contains filtered or unexported fields
}
DeviceInfo stores information about all devices on the node
func NewDeviceInfo ¶
func NewDeviceInfo(manager resource.Manager) *DeviceInfo
NewDeviceInfo creates a new DeviceInfo struct and returns a pointer to it.
func (*DeviceInfo) AnyMigEnabledDeviceIsEmpty ¶
func (di *DeviceInfo) AnyMigEnabledDeviceIsEmpty() (bool, error)
AnyMigEnabledDeviceIsEmpty checks whether at least one MIG device has no MIG devices configured
func (*DeviceInfo) GetAllMigDevices ¶
func (di *DeviceInfo) GetAllMigDevices() ([]resource.Device, error)
GetAllMigDevices returns a list of all MIG devices.
func (*DeviceInfo) GetDevicesMap ¶ added in v0.6.1
func (di *DeviceInfo) GetDevicesMap() (map[bool][]resource.Device, error)
GetDevicesMap returns the list of devices separated by whether they have MIG enabled. The first call will construct the map.
func (*DeviceInfo) GetDevicesWithMigDisabled ¶
func (di *DeviceInfo) GetDevicesWithMigDisabled() ([]resource.Device, error)
GetDevicesWithMigDisabled returns a list of devices with migEnabled=false
func (*DeviceInfo) GetDevicesWithMigEnabled ¶
func (di *DeviceInfo) GetDevicesWithMigEnabled() ([]resource.Device, error)
GetDevicesWithMigEnabled returns a list of devices with migEnabled=true
Click to show internal directories.
Click to hide internal directories.