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

Struct RemoteCache

pkg/cache/remote.go:27–30  ·  view source on GitHub ↗

RemoteCache implements remote cache

Source from the content-addressed store, hash-verified

25
26// RemoteCache implements remote cache
27type RemoteCache struct {
28 ctx context.Context // for custom header
29 client rpcCache.Cache
30}
31
32// NewRemoteCache is the factory method for RemoteCache
33func NewRemoteCache(ctx context.Context, opts RemoteOptions) *RemoteCache {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected