operator

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 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 Option

type Option func(*config)

Option is a functional option for configuring set of runtimes.

func WithNvidiaRuntimeName

func WithNvidiaRuntimeName(name string) Option

WithNvidiaRuntimeName sets the name of the nvidia runtime.

func WithRoot

func WithRoot(root string) Option

WithRoot sets the root directory for the runtime binaries.

func WithSetAsDefault

func WithSetAsDefault(set bool) Option

WithSetAsDefault sets the default runtime to the nvidia runtime.

type Runtime

type Runtime struct {
	Path         string
	SetAsDefault bool
	// contains filtered or unexported fields
}

Runtime defines a runtime to be configured. The path and whether the runtime is the default runtime can be specfied

type Runtimes

type Runtimes map[string]Runtime

Runtimes defines a set of runtimes to be configure for use in the GPU Operator

func GetRuntimes

func GetRuntimes(opts ...Option) Runtimes

GetRuntimes returns the set of runtimes to be configured for use with the GPU Operator.

func (Runtimes) DefaultRuntimeName

func (r Runtimes) DefaultRuntimeName() string

DefaultRuntimeName returns the name of the default runtime.

Jump to

Keyboard shortcuts

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