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

Method path

cache.go:54–59  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

52}
53
54func (dc *dirCache) path(key string) string {
55 h := fnv.New128a()
56 h.Write([]byte(key))
57 h.Sum(nil)
58 return filepath.Join(dc.root, base32.StdEncoding.EncodeToString(h.Sum(nil)))
59}

Callers 2

GetMethod · 0.95
PutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected