Function
NewChainloopGroupLoader
(client pb.AttestationServiceClient, c cache.Cache[*groupWithReference])
Source from the content-addressed store, hash-verified
| 110 | } |
| 111 | |
| 112 | func NewChainloopGroupLoader(client pb.AttestationServiceClient, c cache.Cache[*groupWithReference]) *ChainloopGroupLoader { |
| 113 | return &ChainloopGroupLoader{Client: client, cache: c} |
| 114 | } |
| 115 | |
| 116 | func (c *ChainloopGroupLoader) Load(ctx context.Context, attachment *v1.PolicyGroupAttachment) (*v1.PolicyGroup, *PolicyDescriptor, error) { |
| 117 | ref := attachment.GetRef() |
Tested by
no test coverage detected