MCPcopy
hub / github.com/aquasecurity/trivy / MissingBlobs

Method MissingBlobs

internal/cachetest/cache.go:46–51  ·  view source on GitHub ↗
(ctx context.Context, artifactID string, blobIDs []string)

Source from the content-addressed store, hash-verified

44}
45
46func (c *ErrorCache) MissingBlobs(ctx context.Context, artifactID string, blobIDs []string) (bool, []string, error) {
47 if c.opts.MissingBlobs {
48 return false, nil, errors.New("MissingBlobs failed")
49 }
50 return c.MemoryCache.MissingBlobs(ctx, artifactID, blobIDs)
51}
52
53func (c *ErrorCache) PutArtifact(ctx context.Context, artifactID string, artifactInfo types.ArtifactInfo) error {
54 if c.opts.PutArtifact {

Callers

nothing calls this directly

Calls 2

NewMethod · 0.65
MissingBlobsMethod · 0.65

Tested by

no test coverage detected