toolkit

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultNvidiaDriverRoot specifies the default NVIDIA driver run directory
	DefaultNvidiaDriverRoot = "/run/nvidia/driver"
)

Variables

This section is empty.

Functions

func Flags

func Flags(opts *Options) []cli.Flag

func Install

func Install(cli *cli.Context, opts *Options, toolkitRoot string) error

Install installs the components of the NVIDIA container toolkit. Any existing installation is removed.

func TryDelete

func TryDelete(cli *cli.Context, toolkitRoot string) error

TryDelete attempts to remove the specified toolkit folder. A toolkit.pid file -- if present -- is skipped.

func ValidateOptions

func ValidateOptions(opts *Options, toolkitRoot string) error

ValidateOptions checks whether the specified options are valid

Types

type Options

type Options struct {
	DriverRoot        string
	DevRoot           string
	DriverRootCtrPath string
	DevRootCtrPath    string

	ContainerRuntimeMode     string
	ContainerRuntimeDebug    string
	ContainerRuntimeLogLevel string

	ContainerRuntimeModesCdiDefaultKind        string
	ContainerRuntimeModesCDIAnnotationPrefixes cli.StringSlice

	ContainerRuntimeRuntimes cli.StringSlice

	ContainerRuntimeHookSkipModeDetection bool

	ContainerCLIDebug string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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