MCPcopy
hub / github.com/NVIDIA/k8s-device-plugin / apiDevices

Method apiDevices

internal/plugin/server.go:476–478  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474}
475
476func (plugin *nvidiaDevicePlugin) apiDevices() []*pluginapi.Device {
477 return plugin.rm.Devices().GetPluginDevices()
478}
479
480// updateResponseForDeviceListEnvVar sets the environment variable for the requested devices.
481func (plugin *nvidiaDevicePlugin) updateResponseForDeviceListEnvVar(response *pluginapi.ContainerAllocateResponse, deviceIDs ...string) {

Callers 1

ListAndWatchMethod · 0.95

Calls 2

GetPluginDevicesMethod · 0.80
DevicesMethod · 0.65

Tested by

no test coverage detected