system

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 7 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.

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 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