MCPcopy Create free account
hub / github.com/containerd/release-tool / Get

Method Get

cache.go:45–48  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

43}
44
45func (dc *dirCache) Get(key string) ([]byte, bool) {
46 b, err := os.ReadFile(dc.path(key))
47 return b, err == nil
48}
49
50func (dc *dirCache) Put(key string, value []byte) error {
51 return os.WriteFile(dc.path(key), value, 0755)

Callers

nothing calls this directly

Calls 1

pathMethod · 0.95

Tested by

no test coverage detected