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

Struct Resource

api/config/v1/resources.go:35–38  ·  view source on GitHub ↗

Resource pairs a pattern matcher with a resource name.

Source from the content-addressed store, hash-verified

33
34// Resource pairs a pattern matcher with a resource name.
35type Resource struct {
36 Pattern ResourcePattern `json:"pattern" yaml:"pattern"`
37 Name ResourceName `json:"name" yaml:"name"`
38}
39
40// Resources lists full GPUs and MIG devices separately.
41type Resources struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected