vendor: update buildkit to 2943a0838

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2020-09-19 22:02:46 -07:00
parent 92fb995505
commit c41b006be1
644 changed files with 62146 additions and 21194 deletions

View File

@ -47,6 +47,14 @@ func initializeInfoCache() {
}
}
func EnableFileCache() {
fileCacheEnable = true
}
func EnableInfoCache() {
infoCacheEnable = true
}
func DisableFileCache() {
fileCacheEnable = false
}
@ -78,10 +86,19 @@ func GetInfoCache() map[string]interface{} {
return infoCache
}
func ClearFileCache() {
fileCache = make(map[string][]byte, 0)
}
func ClearInfoCache() {
infoCache = make(map[string]interface{})
}
func ClearCaches() {
ClearFileCache()
ClearInfoCache()
}
// FetchFile gets a specified file from the local filesystem or a remote location.
func FetchFile(fileurl string) ([]byte, error) {
var bytes []byte