MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / NewChainloopGroupLoader

Function NewChainloopGroupLoader

pkg/policies/group_loader.go:112–114  ·  view source on GitHub ↗
(client pb.AttestationServiceClient, c cache.Cache[*groupWithReference])

Source from the content-addressed store, hash-verified

110}
111
112func NewChainloopGroupLoader(client pb.AttestationServiceClient, c cache.Cache[*groupWithReference]) *ChainloopGroupLoader {
113 return &ChainloopGroupLoader{Client: client, cache: c}
114}
115
116func (c *ChainloopGroupLoader) Load(ctx context.Context, attachment *v1.PolicyGroupAttachment) (*v1.PolicyGroup, *PolicyDescriptor, error) {
117 ref := attachment.GetRef()

Callers 1

getGroupLoaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected