system

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

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

Interface is the interface for the system command

func New

func New(opts ...Option) (*Interface, error)

New constructs a system command with the specified options

func (*Interface) CreateNVIDIAControlDeviceNodesAt

func (m *Interface) CreateNVIDIAControlDeviceNodesAt(root string) error

CreateNVIDIAControlDeviceNodesAt creates the NVIDIA control device nodes associated with the NVIDIA driver at the specified root.

func (*Interface) CreateNVIDIADeviceNode

func (m *Interface) CreateNVIDIADeviceNode(path string) error

CreateNVIDIADeviceNode creates a specified device node associated with the NVIDIA driver.

func (*Interface) LoadNVIDIAKernelModules added in v1.13.2

func (m *Interface) LoadNVIDIAKernelModules() error

LoadNVIDIAKernelModules loads the NVIDIA kernel modules.

type Option

type Option func(*Interface)

Option is a functional option for the system command

func WithDryRun

func WithDryRun(dryRun bool) Option

WithDryRun sets the dry run flag

func WithLoadKernelModules added in v1.13.2

func WithLoadKernelModules(loadKernelModules bool) Option

WithLoadKernelModules sets the load kernel modules flag

func WithLogger

func WithLogger(logger *logrus.Logger) Option

WithLogger sets the logger for the system command

Jump to

Keyboard shortcuts

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