mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to 2943a0838
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
17
vendor/github.com/googleapis/gnostic/compiler/reader.go
generated
vendored
17
vendor/github.com/googleapis/gnostic/compiler/reader.go
generated
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user