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

Struct funcCache

pkg/watch/manager_test.go:121–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121type funcCache struct {
122 ListFunc func(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
123 GetInformerNonBlockingFunc func(ctx context.Context, obj client.Object) (cache.Informer, error)
124}
125
126func (f *funcCache) GetInformer(ctx context.Context, obj client.Object, _ ...cache.InformerGetOption) (cache.Informer, error) {
127 if f.GetInformerNonBlockingFunc != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected