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

Struct FakeFetcher

pkg/gator/policy/client/client_test.go:592–594  ·  view source on GitHub ↗

FakeFetcher is a test implementation of catalog.Fetcher.

Source from the content-addressed store, hash-verified

590
591// FakeFetcher is a test implementation of catalog.Fetcher.
592type FakeFetcher struct {
593 content map[string][]byte
594}
595
596func (f *FakeFetcher) Fetch(_ context.Context, _ string) ([]byte, error) {
597 return nil, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected