package
0.17.1
Repository: https://github.com/nvidia/k8s-device-plugin.git
Documentation: pkg.go.dev

# Functions

AddDefaultResourcesToConfig adds default resource matching rules to config.Resources.
BuildDevice builds an rm.Device with the specified index and deviceInfo.
NewAnnotatedID creates a new AnnotatedID from an ID and a replica number.
NewDeviceMap creates a device map for the specified NVML library and config.
NewNVMLResourceManagers returns a set of ResourceManagers, one for each NVML resource in 'config'.
NewTegraResourceManagers returns a set of ResourceManagers for tegra resources.

# Structs

Device wraps pluginapi.Device with extra metadata and functions.

# Interfaces

ResourceManager provides an interface for listing a set of Devices and checking health on them.

# Type aliases

AnnotatedID represents an ID with a replica number embedded in it.
AnnotatedIDs can be used to treat a []string as a []AnnotatedID.
DeviceMap stores a set of devices per resource name.
Devices wraps a map[string]*Device with some functions.