MCPcopy
hub / github.com/helm/helm / DiskCache

Struct DiskCache

pkg/downloader/cache.go:51–53  ·  view source on GitHub ↗

TODO: The cache assumes files because much of Helm assumes files. Convert Helm to pass content around instead of file locations. DiskCache is a cache that stores data on disk.

Source from the content-addressed store, hash-verified

49
50// DiskCache is a cache that stores data on disk.
51type DiskCache struct {
52 Root string
53}
54
55// Get returns a reader for the given key.
56func (c *DiskCache) Get(key [sha256.Size]byte, cacheType string) (string, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected