Documentation
¶
Index ¶
- type Options
- func (o Options) Configure(cfg engine.Interface) error
- func (o Options) Flush(cfg engine.Interface) error
- func (o Options) GetConfigLoaders(commandSourceFunc func(string, string) toml.Loader) ([]toml.Loader, error)
- func (o Options) Restart(service string, withSignal func(string) error) error
- func (o Options) RevertConfig(cfg engine.Interface) error
- func (o Options) SystemdRestart(service string) error
- func (o Options) Unconfigure(cfg engine.Interface) error
- func (o Options) UpdateConfig(cfg engine.Interface) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
DropInConfig string
DropInConfigHostPath string
// TopLevelConfigPath stores the path to the top-level config for the runtime.
TopLevelConfigPath string
Socket string
// ExecutablePath specifies the path to the container runtime executable.
// This is used to extract the current config, for example.
// If a HostRootMount is specified, this path is relative to the host root
// mount.
ExecutablePath string
// EnabledCDI indicates whether CDI should be enabled.
EnableCDI bool
RuntimeName string
RuntimeDir string
SetAsDefault bool
RestartMode string
HostRootMount string
ConfigSources []string
}
Options defines the shared options for the CLIs to configure containers runtimes.
func (Options) GetConfigLoaders ¶
func (o Options) GetConfigLoaders(commandSourceFunc func(string, string) toml.Loader) ([]toml.Loader, error)
GetConfigLoaders returns the loaders for the requested config sources. Supported config sources can be specified as:
* 'file[=path/to/file]': The specified file or the top-level config path is used. * command: The runtime-specific function supplied as an argument is used.
func (Options) RevertConfig ¶
RevertConfig reverts the specified config to remove the nvidia runtimes
func (Options) SystemdRestart ¶
SystemdRestart restarts the specified service using systemd
func (Options) Unconfigure ¶
Unconfigure removes the options from the specified config
Click to show internal directories.
Click to hide internal directories.