Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { // Root represents the root from the perspective of the driver libraries and binaries. Root string // contains filtered or unexported fields }
Driver represents a filesystem in which a set of drivers or devices is defined.
func (*Driver) Configs ¶
Configs returns a locator for driver configs. If configSearchPaths is specified, these paths are used as absolute paths, otherwise, /etc and /usr/share are searched.
func (*Driver) RelativeToRoot ¶ added in v1.16.0
RelativeToRoot returns the specified path relative to the driver root.
type Option ¶
type Option func(*Driver)
func WithConfigSearchPaths ¶
func WithDriverRoot ¶
func WithLibrarySearchPaths ¶
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.