Documentation
¶
Index ¶
Constants ¶
View Source
const ( // In LegacyRuntimeMode the nvidia-container-runtime injects the // nvidia-container-runtime-hook as a prestart hook into the incoming // container config. This hook invokes the nvidia-container-cli to perform // the required modifications to the container. LegacyRuntimeMode = RuntimeMode("legacy") // In CSVRuntimeMode the nvidia-container-runtime processes a set of CSV // files to determine which container modification are required. The // contents of these CSV files are used to generate an in-memory CDI // specification which is used to modify the container config. CSVRuntimeMode = RuntimeMode("csv") // In CDIRuntimeMode the nvidia-container-runtime applies the modifications // to the container config required for the requested CDI devices in the // same way that other CDI clients would. CDIRuntimeMode = RuntimeMode("cdi") // In JitCDIRuntimeMode the nvidia-container-runtime generates in-memory CDI // specifications for requested NVIDIA devices. JitCDIRuntimeMode = RuntimeMode("jit-cdi") )
Variables ¶
This section is empty.
Functions ¶
func GetVersionParts ¶
func GetVersionParts() []string
GetVersionParts returns the different version components
func GetVersionString ¶
GetVersionString returns the string representation of the version
Types ¶
type Option ¶
type Option func(*modeResolver)
func WithDefaultMode ¶
func WithDefaultMode(defaultMode RuntimeMode) Option
func WithLogger ¶
func WithPropertyExtractor ¶
func WithPropertyExtractor(propertyExtractor info.PropertyExtractor) Option
type RuntimeMode ¶
type RuntimeMode string
A RuntimeMode is used to select a specific mode of operation for the NVIDIA Container Runtime.
func ResolveAutoMode ¶
ResolveAutoMode determines the correct mode for the platform if set to "auto"
type RuntimeModeResolver ¶
type RuntimeModeResolver interface {
ResolveRuntimeMode(string) RuntimeMode
}
func NewRuntimeModeResolver ¶
func NewRuntimeModeResolver(opts ...Option) RuntimeModeResolver
Click to show internal directories.
Click to hide internal directories.