MCPcopy
hub / github.com/helmfile/helmfile / CacheDir

Function CacheDir

pkg/remote/remote.go:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func CacheDir() string {
46 if h := os.Getenv(envvar.CacheHome); h != "" {
47 return h
48 }
49
50 dir, err := os.UserCacheDir()
51 if err != nil {
52 // fall back to relative path with hidden directory
53 return ".helmfile"
54 }
55 return filepath.Join(dir, "helmfile")
56}
57
58type Remote struct {
59 Logger *zap.SugaredLogger

Callers 15

TestStorage_resolveFileFunction · 0.92
isSharedCachePathMethod · 0.92
getOCIChartMethod · 0.92
TestIsSharedCachePathFunction · 0.92
ShowCacheDirMethod · 0.92
CleanCacheDirMethod · 0.92
TestRemote_HttpsGitHubFunction · 0.85
TestRemote_SShGitHubFunction · 0.85
TestRemote_S3Function · 0.85

Calls

no outgoing calls