cdidevices

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: EPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSpecDirs = []string{"/etc/cdi", "/var/run/cdi"}

DefaultSpecDirs are the host paths containerd scans when CDI is enabled.

Functions

func ExtraSpecDirsFromConfigD

func ExtraSpecDirsFromConfigD(configDDir string) []string

ExtraSpecDirsFromConfigD reads extra cdi_spec_dirs from generated containerd config.d files.

func ListAvailable

func ListAvailable(engineName string) []string

ListAvailable returns fully-qualified CDI device names for the edgelet engine. Docker, podman, and other engines return an empty list.

func ListFromDirs

func ListFromDirs(dirs []string) []string

ListFromDirs returns unique sorted fully-qualified CDI device names from spec dirs. Missing directories and unreadable files are skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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