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

Method MissingBlobs

pkg/cache/cache.go:26–26  ·  view source on GitHub ↗

MissingBlobs returns missing blob IDs such as layer IDs in cache

(ctx context.Context, artifactID string, blobIDs []string)

Source from the content-addressed store, hash-verified

24type ArtifactCache interface {
25 // MissingBlobs returns missing blob IDs such as layer IDs in cache
26 MissingBlobs(ctx context.Context, artifactID string, blobIDs []string) (missingArtifact bool, missingBlobIDs []string, err error)
27
28 // PutArtifact stores artifact information such as image metadata in cache
29 PutArtifact(ctx context.Context, artifactID string, artifactInfo types.ArtifactInfo) (err error)

Callers 6

MissingBlobsMethod · 0.65
InspectMethod · 0.65
InspectMethod · 0.65
hasCacheMethod · 0.65
MissingBlobsMethod · 0.65
MissingBlobsMethod · 0.65

Implementers 8

mockCacheServerpkg/cache/remote_test.go
RedisCachepkg/cache/redis.go
RemoteCachepkg/cache/remote.go
FSCachepkg/cache/fs.go
MemoryCachepkg/cache/memory.go
CacheServerpkg/rpc/server/server.go
cacheProtobufClientrpc/cache/service.twirp.go
cacheJSONClientrpc/cache/service.twirp.go

Calls

no outgoing calls

Tested by

no test coverage detected