Documentation ¶
Index ¶
- func BuildCommand() *cli.Command
- func CheckFlags(f *Flags) error
- func GetLogger() *logrus.Logger
- func GetSelectedVGPUConfig(f *Flags, spec *v1.Spec) (v1.VGPUConfigSpecSlice, error)
- func ParseConfigFile(f *Flags) (*v1.Spec, error)
- func VGPUConfig(c *Context) error
- func WalkSelectedVGPUConfigForEachGPU(vgpuConfig v1.VGPUConfigSpecSlice, ...) error
- type Context
- type Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFlags ¶
CheckFlags ensures that any required flags are provided and ensures they are well-formed.
func GetSelectedVGPUConfig ¶
GetSelectedVGPUConfig gets the selected VGPUConfigSpecSlice from the config file
func ParseConfigFile ¶
ParseConfigFile parses the vGPU device configuration file
func VGPUConfig ¶
VGPUConfig asserts that the selected vGPU config is applied to the node
func WalkSelectedVGPUConfigForEachGPU ¶
func WalkSelectedVGPUConfigForEachGPU(vgpuConfig v1.VGPUConfigSpecSlice, f func(*v1.VGPUConfigSpec, int, types.DeviceID) error) error
WalkSelectedVGPUConfigForEachGPU applies a function 'f' to the selected 'VGPUConfig' for each GPU on the node
Types ¶
Click to show internal directories.
Click to hide internal directories.