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

Method Put

cache.go:50–52  ·  view source on GitHub ↗
(key string, value []byte)

Source from the content-addressed store, hash-verified

48}
49
50func (dc *dirCache) Put(key string, value []byte) error {
51 return os.WriteFile(dc.path(key), value, 0755)
52}
53
54func (dc *dirCache) path(key string) string {
55 h := fnv.New128a()

Callers

nothing calls this directly

Calls 1

pathMethod · 0.95

Tested by

no test coverage detected