Documentation ¶
Index ¶
- func NewCommand(logger *logrus.Logger) *cli.Command
- type Creator
- type Option
- func WithCreateAll(createAll bool) Option
- func WithCreateDeviceNodes(createDeviceNodes bool) Option
- func WithDevCharPath(path string) Option
- func WithDriverRoot(root string) Option
- func WithDryRun(dryRun bool) Option
- func WithLoadKernelModules(loadKernelModules bool) Option
- func WithLogger(logger *logrus.Logger) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
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 ¶
NewSymlinkCreator creates a new linkCreator.
type Option ¶
type Option func(*linkCreator)
Option is a functional option for configuring the linkCreator.
func WithCreateAll ¶
WithCreateAll sets the createAll flag for the linkCreator.
func WithCreateDeviceNodes ¶ added in v1.13.2
WithCreateDeviceNodes sets the createDeviceNodes flag for the linkCreator.
func WithDevCharPath ¶
WithDevCharPath sets the path at which the symlinks will be created.
func WithDriverRoot ¶
WithDriverRoot sets the driver root path.
func WithLoadKernelModules ¶ added in v1.13.2
WithLoadKernelModules sets the loadKernelModules flag for the linkCreator.
Click to show internal directories.
Click to hide internal directories.