state

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Fetch() (*types.MigState, error)
	RestoreMode(state *types.MigState) error
	RestoreConfig(state *types.MigState) error
}

Manager represents the set of operations for fetching / restoring the full MIG state of all GPUs on a node.

func NewMigStateManager

func NewMigStateManager() Manager

NewMigStateManager creates a new MIG state Manager.

func NewMockMigStateManager

func NewMockMigStateManager(nvml nvml.Interface) Manager

NewMockMigStateManager creates a MIG state Manager using 'nvml' as the underlying NVML library to mock out its calls.

Jump to

Keyboard shortcuts

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