tegra

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (discover.Discover, error)

New creates a new tegra discoverer using the supplied options.

Types

type Option

type Option func(*tegraOptions)

Option defines a functional option for configuring a Tegra discoverer.

func WithCSVFiles

func WithCSVFiles(csvFiles []string) Option

WithCSVFiles sets the CSV files for the discoverer.

func WithDevRoot added in v1.15.0

func WithDevRoot(devRoot string) Option

WithDevRoot sets the /dev root. If this is unset, the driver root is assumed.

func WithDriverRoot

func WithDriverRoot(driverRoot string) Option

WithDriverRoot sets the driver root for the discoverer.

func WithIngorePatterns added in v1.14.2

func WithIngorePatterns(ignorePatterns ...string) Option

WithIngorePatterns sets patterns to ignore in the CSV files

func WithLdconfigPath added in v1.15.0

func WithLdconfigPath(ldconfigPath string) Option

WithLdconfigPath sets the path to the ldconfig program

func WithLibrarySearchPaths

func WithLibrarySearchPaths(librarySearchPaths ...string) Option

WithLibrarySearchPaths sets the library search paths for the discoverer.

func WithLogger

func WithLogger(logger logger.Interface) Option

WithLogger sets the logger for the discoverer.

func WithNVIDIACTKPath

func WithNVIDIACTKPath(nvidiaCTKPath string) Option

WithNVIDIACTKPath sets the path to the nvidia-container-toolkit binary.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL