MCPcopy Create free account
hub / github.com/HashLoad/boss / makeStorageCache

Function makeStorageCache

core/gitWrapper/git_embedded.go:76–83  ·  view source on GitHub ↗
(dep models.Dependency)

Source from the content-addressed store, hash-verified

74}
75
76func makeStorageCache(dep models.Dependency) storage.Storer {
77 paths.EnsureCacheDir(dep)
78 dir := filepath.Join(env.GetCacheDir(), dep.GetHashName())
79 fs := osfs.New(dir)
80
81 newStorage := filesystem.NewStorage(fs, cache2.NewObjectLRUDefault())
82 return newStorage
83}
84
85func makeWtFileSystem(dep models.Dependency) billy.Filesystem {
86 paths.EnsureCacheDir(dep)

Callers 3

GetRepositoryFunction · 0.85
CloneCacheEmbeddedFunction · 0.85
UpdateCacheEmbeddedFunction · 0.85

Calls 4

EnsureCacheDirFunction · 0.92
GetCacheDirFunction · 0.92
GetHashNameMethod · 0.80
NewMethod · 0.80

Tested by

no test coverage detected