MCPcopy Create free account
hub / github.com/conforma/cli / ClearDownloadCache

Function ClearDownloadCache

internal/policy/source/source.go:85–88  ·  view source on GitHub ↗

ClearDownloadCache clears the download cache. This is primarily used for testing.

()

Source from the content-addressed store, hash-verified

83
84// ClearDownloadCache clears the download cache. This is primarily used for testing.
85func ClearDownloadCache() {
86 downloadCache = sync.Map{}
87 symlinkMutexes = sync.Map{}
88}
89
90type cacheContent struct {
91 sourceUrl string

Callers 1

TestGoGetterDownloadFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGoGetterDownloadFunction · 0.68