mig

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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