MCPcopy
hub / github.com/kubernetes/kubernetes / ResourceGetter

Interface ResourceGetter

pkg/registry/core/pod/strategy.go:532–534  ·  view source on GitHub ↗

ResourceGetter is an interface for retrieving resources by ResourceLocation.

Source from the content-addressed store, hash-verified

530
531// ResourceGetter is an interface for retrieving resources by ResourceLocation.
532type ResourceGetter interface {
533 Get(context.Context, string, *metav1.GetOptions) (runtime.Object, error)
534}
535
536func getPod(ctx context.Context, getter ResourceGetter, name string) (*api.Pod, error) {
537 obj, err := getter.Get(ctx, name, &metav1.GetOptions{})

Callers

nothing calls this directly

Implementers 15

listerplugin/pkg/auth/authenticator/token/bo
NodeToStatuspkg/scheduler/framework/interface.go
nodeInfoListerContractpkg/scheduler/framework/autoscaler_con
podGroupStateListerContractpkg/scheduler/framework/autoscaler_con
deviceClassListerContractpkg/scheduler/framework/autoscaler_con
resourceClaimTrackerContractpkg/scheduler/framework/autoscaler_con
csiNodeListerWrapperpkg/scheduler/framework/plugins/nodevo
deviceClassListerpkg/scheduler/framework/plugins/dynami
podGroupListerpkg/scheduler/framework/plugins/dynami
claimTrackerpkg/scheduler/framework/plugins/dynami
allocatedDevicespkg/scheduler/framework/plugins/dynami
mockDRAManagerpkg/scheduler/framework/plugins/dynami

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…