MCPcopy
hub / github.com/google/go-containerregistry / NewFilesystemCache

Function NewFilesystemCache

pkg/v1/cache/fs.go:34–36  ·  view source on GitHub ↗

NewFilesystemCache returns a Cache implementation backed by files.

(path string)

Source from the content-addressed store, hash-verified

32
33// NewFilesystemCache returns a Cache implementation backed by files.
34func NewFilesystemCache(path string) Cache {
35 return &fscache{path}
36}
37
38func (fs *fscache) Put(l v1.Layer) (v1.Layer, error) {
39 digest, err := l.Digest()

Callers 5

ExampleImageFunction · 0.92
NewCmdPullFunction · 0.92
TestFilesystemCacheFunction · 0.85
TestErrNotFoundFunction · 0.85
TestErrUnexpectedEOFFunction · 0.85

Calls

no outgoing calls

Tested by 4

ExampleImageFunction · 0.74
TestFilesystemCacheFunction · 0.68
TestErrNotFoundFunction · 0.68
TestErrUnexpectedEOFFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…