devchar

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(logger *logrus.Logger) *cli.Command

NewCommand constructs a command sub-command with the specified logger

Types

type Creator

type Creator interface {
	CreateLinks() error
}

Creator is an interface for creating symlinks to /dev/nv* devices in /dev/char.

func NewSymlinkCreator

func NewSymlinkCreator(opts ...Option) (Creator, error)

NewSymlinkCreator creates a new linkCreator.

type Option

type Option func(*linkCreator)

Option is a functional option for configuring the linkCreator.

func WithCreateAll

func WithCreateAll(createAll bool) Option

WithCreateAll sets the createAll flag for the linkCreator.

func WithDevCharPath

func WithDevCharPath(path string) Option

WithDevCharPath sets the path at which the symlinks will be created.

func WithDriverRoot

func WithDriverRoot(root string) Option

WithDriverRoot sets the driver root path.

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.

Jump to

Keyboard shortcuts

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