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

Struct EmbeddedLoader

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

EmbeddedLoader returns embedded policies

Source from the content-addressed store, hash-verified

91
92// EmbeddedLoader returns embedded policies
93type EmbeddedLoader struct{}
94
95func (e *EmbeddedLoader) Load(_ context.Context, attachment *v1.PolicyAttachment) (*v1.Policy, *PolicyDescriptor, error) {
96 return attachment.GetEmbedded(), nil, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected