Documentation ¶
Index ¶
- func New(opts ...Option) (discover.Discover, error)
- type Option
- func WithCSVFiles(csvFiles []string) Option
- func WithDevRoot(driverRoot string) Option
- func WithDriverRoot(driverRoot string) Option
- func WithIngorePatterns(ignorePatterns ...string) Option
- func WithLibrarySearchPaths(librarySearchPaths ...string) Option
- func WithLogger(logger logger.Interface) Option
- func WithNVIDIACTKPath(nvidiaCTKPath string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*tegraOptions)
Option defines a functional option for configuring a Tegra discoverer.
func WithCSVFiles ¶
WithCSVFiles sets the CSV files for the discoverer.
func WithDevRoot ¶ added in v1.15.0
WithDevRoot sets the /dev root. If this is unset, the driver root is assumed.
func WithDriverRoot ¶
WithDriverRoot sets the driver root for the discoverer.
func WithIngorePatterns ¶ added in v1.14.2
WithIngorePatterns sets patterns to ignore in the CSV files
func WithLibrarySearchPaths ¶
WithLibrarySearchPaths sets the library search paths for the discoverer.
func WithLogger ¶
WithLogger sets the logger for the discoverer.
func WithNVIDIACTKPath ¶
WithNVIDIACTKPath sets the path to the nvidia-container-toolkit binary.
Click to show internal directories.
Click to hide internal directories.