Update go dependencies
This commit is contained in:
parent
535d806676
commit
a662db5366
270 changed files with 13455 additions and 5291 deletions
3
vendor/k8s.io/client-go/discovery/cached/disk/round_tripper.go
generated
vendored
3
vendor/k8s.io/client-go/discovery/cached/disk/round_tripper.go
generated
vendored
|
|
@ -18,6 +18,7 @@ package disk
|
|||
|
||||
import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/gregjones/httpcache"
|
||||
|
|
@ -35,6 +36,8 @@ type cacheRoundTripper struct {
|
|||
// corresponding requests.
|
||||
func newCacheRoundTripper(cacheDir string, rt http.RoundTripper) http.RoundTripper {
|
||||
d := diskv.New(diskv.Options{
|
||||
PathPerm: os.FileMode(0750),
|
||||
FilePerm: os.FileMode(0660),
|
||||
BasePath: cacheDir,
|
||||
TempDir: filepath.Join(cacheDir, ".diskv-temp"),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue