MCPcopy Index your code
hub / github.com/chainloop-dev/chainloop / ChainloopLoader

Struct ChainloopLoader

pkg/policies/loader.go:161–165  ·  view source on GitHub ↗

ChainloopLoader loads policies referenced with chainloop://provider/name URLs

Source from the content-addressed store, hash-verified

159
160// ChainloopLoader loads policies referenced with chainloop://provider/name URLs
161type ChainloopLoader struct {
162 Client pb.AttestationServiceClient
163 cache cache.Cache[*policyWithReference]
164 flight singleflight.Group
165}
166
167type policyWithReference struct {
168 Policy *v1.Policy `json:"policy"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected