MCPcopy
hub / github.com/open-policy-agent/gatekeeper / List

Method List

pkg/fakes/reader.go:15–20  ·  view source on GitHub ↗
(ctx context.Context, list client.ObjectList, opts ...client.ListOption)

Source from the content-addressed store, hash-verified

13}
14
15func (r SpyReader) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error {
16 if r.ListFunc != nil {
17 return r.ListFunc(ctx, list, opts...)
18 }
19 return r.Reader.List(ctx, list, opts...)
20}
21
22// FailureInjector can be used in combination with the SpyReader to simulate transient
23// failures for network calls.

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected