Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultNvidiaDriverRoot specifies the default NVIDIA driver run directory
DefaultNvidiaDriverRoot = "/run/nvidia/driver"
)
Variables ¶
This section is empty.
Functions ¶
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 ¶
NewInstaller creates an installer for the NVIDIA Container Toolkit.
func (*Installer) Install ¶
Install installs the components of the NVIDIA container toolkit. Any existing installation is removed.
func (*Installer) ValidateOptions ¶
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 WithSourceRoot ¶
func WithToolkitRoot ¶
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
}
Click to show internal directories.
Click to hide internal directories.