Documentation ¶
Index ¶
- func NewCommand(logger logger.Interface) *cli.Command
- type Creator
- type Option
- func WithCreateAll(createAll bool) Option
- func WithCreateDeviceNodes(createDeviceNodes bool) Option
- func WithDevCharPath(path string) Option
- func WithDevRoot(root string) Option
- func WithDriverRoot(root string) Option
- func WithDryRun(dryRun bool) Option
- func WithLoadKernelModules(loadKernelModules bool) Option
- func WithLogger(logger logger.Interface) 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 WithDevRoot ¶ added in v1.13.3
WithDevRoot sets the root path for the /dev directory.
func WithDriverRoot ¶
WithDriverRoot sets the driver root path. This is the path in which kernel modules must be loaded.
func WithLoadKernelModules ¶ added in v1.13.2
WithLoadKernelModules sets the loadKernelModules flag for the linkCreator.