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

Struct FakeCfClient

pkg/fakes/fakecfdataclient.go:33–37  ·  view source on GitHub ↗

FakeCfClient is an CfDataClient for testing.

Source from the content-addressed store, hash-verified

31
32// FakeCfClient is an CfDataClient for testing.
33type FakeCfClient struct {
34 mu gosync.Mutex
35 data map[CfDataKey]interface{}
36 needsToError bool
37}
38
39// KeyFor returns a CfDataKey for the provided resource.
40// Returns error if the resource is not a runtime.Object w/ metadata.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected