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

Interface Loader

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

Loader defines the interface for policy loaders from contract attachments

Source from the content-addressed store, hash-verified

46
47// Loader defines the interface for policy loaders from contract attachments
48type Loader interface {
49 Load(context.Context, *v1.PolicyAttachment) (*v1.Policy, *PolicyDescriptor, error)
50}
51
52// PolicyDescriptor Represents a policy reference. Used as FQ references.
53type PolicyDescriptor struct {

Callers 6

LoadPolicyGroupFunction · 0.65
loadPolicySpecMethod · 0.65
mainFunction · 0.65
mainFunction · 0.65

Implementers 7

EmbeddedLoaderpkg/policies/loader.go
FileLoaderpkg/policies/loader.go
HTTPSLoaderpkg/policies/loader.go
ChainloopLoaderpkg/policies/loader.go
FileGroupLoaderpkg/policies/group_loader.go
HTTPSGroupLoaderpkg/policies/group_loader.go
ChainloopGroupLoaderpkg/policies/group_loader.go

Calls

no outgoing calls

Tested by

no test coverage detected