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

Struct HTTPSLoader

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

HTTPSLoader loader loads policies from HTTP or HTTPS references

Source from the content-addressed store, hash-verified

128
129// HTTPSLoader loader loads policies from HTTP or HTTPS references
130type HTTPSLoader struct{}
131
132func (l *HTTPSLoader) Load(_ context.Context, attachment *v1.PolicyAttachment) (*v1.Policy, *PolicyDescriptor, error) {
133 ref, wantDigest := ExtractDigest(attachment.GetRef())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected