Documentation
¶
Index ¶
- type Driver
- func (r *Driver) Configs() lookup.Locator
- func (r *Driver) DriverLibraryLocator(additionalDirs ...string) (lookup.Locator, error)
- func (r *Driver) Files(opts ...lookup.Option) lookup.Locator
- func (r *Driver) GetDriverLibDirectory() (string, error)
- func (r *Driver) Libraries() lookup.Locator
- func (r *Driver) RelativeToRoot(path string) string
- func (r *Driver) Version() (string, error)
- type Option
- type Versioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
sync.Mutex
// Root represents the root from the perspective of the driver libraries and binaries.
Root string
// DevRoot represents the root for device nodes for the driver.
DevRoot 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) DriverLibraryLocator ¶ added in v1.18.0
func (*Driver) GetDriverLibDirectory ¶ added in v1.19.0
GetDriverLibDirectory returns the cached directory where the driver libs are found if possible. If this has not yet been initialized, the path is first detected and then returned.
func (*Driver) RelativeToRoot ¶ added in v1.16.0
RelativeToRoot returns the specified path relative to the driver root.
type Option ¶
type Option func(*options)
func WithConfigSearchPaths ¶
func WithDevRoot ¶ added in v1.19.0
func WithDriverRoot ¶
func WithLibrarySearchPaths ¶
func WithLogger ¶
func WithVersioner ¶ added in v1.18.0
Click to show internal directories.
Click to hide internal directories.