ResourceGetter is an interface for retrieving resources by ResourceLocation.
| 530 | |
| 531 | // ResourceGetter is an interface for retrieving resources by ResourceLocation. |
| 532 | type ResourceGetter interface { |
| 533 | Get(context.Context, string, *metav1.GetOptions) (runtime.Object, error) |
| 534 | } |
| 535 | |
| 536 | func getPod(ctx context.Context, getter ResourceGetter, name string) (*api.Pod, error) { |
| 537 | obj, err := getter.Get(ctx, name, &metav1.GetOptions{}) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…