apply

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand() *cli.Command

BuildCommand builds the 'apply' command

func CheckFlags

func CheckFlags(f *Flags) error

CheckFlags ensures that any required flags are provided and ensures they are well-formed.

func GetLogger

func GetLogger() *logrus.Logger

GetLogger returns the logger for the 'apply' command

func VGPUConfig

func VGPUConfig(c *Context) error

VGPUConfig applies the selected vGPU config to the node

Types

type Context

type Context struct {
	assert.Context
	Flags *Flags
}

Context containing CLI flags and the selected VGPUConfig to apply

func (*Context) ApplyVGPUConfig

func (c *Context) ApplyVGPUConfig() error

ApplyVGPUConfig applies a particular vGPU config to the node. The 'VGPUConfig' being applied is embedded in the 'Context' struct itself.

func (*Context) AssertVGPUConfig

func (c *Context) AssertVGPUConfig() error

AssertVGPUConfig reuses calls from the 'assert' subcommand to check if the vGPU devices of a particular vGPU config are currently applied. The 'VGPUConfig' being checked is embedded in the 'Context' struct itself.

type Flags

type Flags struct {
	assert.Flags
}

Flags for the 'apply' command

Jump to

Keyboard shortcuts

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