toolkit

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 14 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

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

An Installer is used to install the NVIDIA Container Toolkit from the toolkit container.

func NewInstaller

func NewInstaller(opts ...Option) *Installer

NewInstaller creates an installer for the NVIDIA Container Toolkit.

func (*Installer) Install

func (t *Installer) Install(cli *cli.Command, opts *Options, runtime string) error

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

func (*Installer) ValidateOptions

func (t *Installer) ValidateOptions(opts *Options) error

ValidateOptions checks whether the specified options are valid

type Option

type Option func(*Installer)

An Option provides a mechanism to configure an Installer.

func WithLogger

func WithLogger(logger logger.Interface) Option

func WithSourceRoot

func WithSourceRoot(sourceRoot string) Option

func WithToolkitRoot

func WithToolkitRoot(toolkitRoot string) Option

type Options

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

	ContainerRuntimeMode     string
	ContainerRuntimeDebug    string
	ContainerRuntimeLogLevel string

	ContainerRuntimeModesCdiDefaultKind        string
	ContainerRuntimeModesCDIAnnotationPrefixes []string

	ContainerRuntimeRuntimes []string

	ContainerRuntimeHookSkipModeDetection bool

	ContainerCLIDebug string

	// CDI stores the CDI options for the toolkit.
	CDI cdiOptions
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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