k3s/pkg/static/zz_generated_bindata.go

275 lines
110 KiB
Go
Raw Normal View History

// Code generated for package static by go-bindata DO NOT EDIT. (@generated)
2019-03-20 00:27:44 +00:00
// sources:
2022-04-15 16:41:40 +00:00
// build/static/charts/traefik-10.19.300.tgz
// build/static/charts/traefik-crd-10.19.300.tgz
//go:build !no_stage
// +build !no_stage
2019-03-20 00:27:44 +00:00
package static
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"
"time"
)
func bindataRead(data []byte, name string) ([]byte, error) {
gz, err := gzip.NewReader(bytes.NewBuffer(data))
if err != nil {
return nil, fmt.Errorf("Read %q: %v", name, err)
}
var buf bytes.Buffer
_, err = io.Copy(&buf, gz)
clErr := gz.Close()
if err != nil {
return nil, fmt.Errorf("Read %q: %v", name, err)
}
if clErr != nil {
return nil, err
}
return buf.Bytes(), nil
}
type asset struct {
bytes []byte
info os.FileInfo
}
type bindataFileInfo struct {
name string
size int64
mode os.FileMode
modTime time.Time
}
// Name return file name
2019-03-20 00:27:44 +00:00
func (fi bindataFileInfo) Name() string {
return fi.name
}
// Size return file size
2019-03-20 00:27:44 +00:00
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
// Mode return file mode
2019-03-20 00:27:44 +00:00
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
// Mode return file modify time
2019-03-20 00:27:44 +00:00
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
// IsDir return file whether a directory
2019-03-20 00:27:44 +00:00
func (fi bindataFileInfo) IsDir() bool {
return fi.mode&os.ModeDir != 0
2019-03-20 00:27:44 +00:00
}
// Sys return file is sys mode
2019-03-20 00:27:44 +00:00
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
2022-04-15 16:41:40 +00:00
var _chartsTraefik1019300Tgz = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x00\x07\x40\xf8\xbf\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\xec\x5c\x79\x73\x1b\x37\x96\xcf\xdf\xfc\x14\x58\xb9\xb6\x46\xaa\x6a\x51\x97\x8f\x89\xb2\xb5\x15\x8d\x24\x27\x9c\x71\x24\x95\x24\x8f\x37\x95\x9a\xb2\xc1\x6e\x34\x89\xa8\xd9\xe8\x01\xba\x45\x71\x52\xf3\xdd\xf7\x1d\x00\x1a\x3c\x24\x7b\x6a\x9d\xcc\xec\xae\x59\x89\x45\x36\xbb\x81\x87\x77\xfc\xde\x05\xb0\xb5\x52\x95\xfa\x6e\xef\xab\x5f\xf1\xb5\x0f\xaf\x57\x2f\x5e\xd0\x5f\x78\xad\xfe\xa5\xf7\x07\x47\xaf\x5e\x1d\x3d\x7f\x79\xc4\xd7\x5f\x1d\xbd\x7a\xfe\x95\x78\xf1\x6b\x12\x15\x5e\x9d\x6b\xa5\x15\xe2\xb7\x98\xea\x5f\xf1\xd5\x7a\xf9\x0f\xa7\xaa\x9a\xe9\x49\x6d\xac\xfa\xec\x73\xa0\x80\x5f\x3e\x7f\xfe\x84\xfc\x5f\x2d\xcb\xff\xe0\xe0\xc5\xe1\xd1\x57\x62\xff\xb3\x53\xb2\xe1\xf5\xff\x5d\xfe\xca\xb5\x6e\x6f\xf0\xcf\x26\xe3\xcb\xeb\x9f\xf4\x0a\xf6\x7f\x3a\x95\xb6\x1d\x2e\xe4\xac\xfa\xfc\x73\x7c\xc4\xfe\x0f\xe0\xb5\x6a\xff\x47\x07\x5f\xec\xff\x37\x79\xc9\x46\xff\x59\x59\xa7\x4d\x7d\x2c\xee\x0f\x07\xb2\x69\xe2\xc7\xc3\xe1\xcb\xe1\xe1\xa0\x50\x2e\xb7\xba\x69\xe9\xd2\x89\xb8\x65\x7d\x11\x63\xe9\x54\x21\xfe\xd4\x8d\x95\xad\x15\x80\x88\xd0\xf5\xc4\x2a\xe7\x44\x6e\xea\xd6\x9a\xaa\x52\x76\x30\x35\x33\x75\x2c\xa6\x6d\xdb\xb8\xe3\xbd\x3d\xaf\x69\x43\x6d\xf6\x06\x3a\xc7\xd1\xc2\x37\x56\xce\x87\x13\xdd\x4e\xbb\x71\xe7\x94\xc5\x01\x54\xdd\x0e\x73\x33\x0b\xcf\xc4\xbf\xf7\x87\xc3\xa3\xbd\xc2\xe4\x6e\xcf\xdf\xb5\x27\x9d\x53\x00\x60\x7a\x36\x89\x13\x54\x66\x62\x86\x4d\x3d\x19\xdc\xa9\xc5\xdc\xd8\xc2\x1d\x0f\x76\x85\xff\x12\xde\x79\x42\x07\x33\xa9\xeb\x16\xfe\x87\xe5\xe2\x0d\x0a\x3e\x57\xc7\xf0\x47\x57\xea\xdb\x7b\xd9\x4d\x14\x52\x30\x10\xa2\x96\xb8\x0a\xba\x4e\x97\xfb\x7b\x0b\x59\x6b\x55\x0d\x5b\x33\xcb\xd5\xcf\xdf\x4e\xf0\xe2\xd2\x33\x05\x7f\xd3\x3f\x50\x15\xea\x6f\xdf\xf6\x7c\x88\x37\xe2\xf5\x01\xbf\x0d\x74\x3a\xd3\xd9\x5c\x11\x65\x81\x4d\xcc\xa2\x4d\x7c\xf9\xa4\x9b\x76\xd1\xc3\xef\xe6\x68\xe7\x83\x76\xd1\xc0\x5c\x20\xec\x4a\xe7\x12\x45\x3b\xb8\x0f\x52\x3f\xd8\x1f\x1e\x7c\x3d\x04\x3b\x1c\xc8\xba\x36\x2d\x7d\x0b\x64\x08\x51\x56\x4a\x81\x54\x64\xdb\x56\x0a\x85\x38\xee\xea\xa2\x52\xbb\xba\x38\x16\x77\x47\xee\x8b\x07\xf9\xdf\xf9\x0a\x4a\xf2\x5d\xa7\x0b\x55\x81\x35\xb8\xe1\xac\xf8\xcc\x73\x7c\x04\xff\x5f\xbc\x7a\xb5\x8a\xff\x87\xfb\x87\xfb\x5f\xf0\xff\xb7\x78\x3d\x8b\x88\xfe\x3d\xc0\x83\xa0\x30\x40\xf4\xca\x30\x18\xdc\x4e\xb5\x13\x00\xb9\xdd\x0c\xe0\x56\x98\xae\xa5\xeb\xa2\x9d\x2a\x31\x89\xb7\x89\xd2\x58\x51\xa8\x7b\x55\x99\x06\xf0\x35\x13\x33\x59\xcb\x09\xbc\x13\xb2\x2e\x84\x7a\x00\xa8\x2e\xf0\x13\x3e\x15\xe6\x43\x38\x12\x04\x47\xc3\xc1\xe0\x92\x1c\x8c\xac\x2a\xdd\x2e\x06\x27\x55\x25\x6a\x53\xef\x82\xdf\x69\x01\x9f\x2a\x51\x2a\xd9\x76\x00\xda\x62\xfb\x75\x78\x07\xd0\x84\x93\x14\xb2\x35\x76\x21\x5a\x23\x50\x8c\x2d\xce\xe1\xc7\xdf\x01\xa0\xa7\xf9\xfa\x79\xc4\x0c\x84\x2d\xc6\x4a\x18\x3f\xdb\x50\x3c\x3e\x95\x9b\x9a\xae\x2a\xf0\xee\x42\x3b\x39\xae\xc0\xdb\x6d\x03\xaa\x22\x17\xe0\x2d\xf0\x21\x4e\x70\x2f\xab\x0e\xcc\x06\x63\x27\x51\x82\x97\xe0\x51\xc3\x1c\x9f\x7d\xf8\x8c\x78\x3a\x95\xf7\x4a\x48\xe1\x1f\x11\xcf\xc4\x76\x60\x61\x7c\x10\x25\x23\xe4\xd8\xdc\x03\x45\x24\x45\x60\xaf\x99\x3b\x31\xd3\xb5\x9e\x01\x2d\xe0\x42\x4b\x3d\xe9\x2c\x41\x3c\x8f\xaa\xc0\xab\x0b\x53\xb2\xc4\xd0\x1f\x80\x68\x9e\x3d\x13\xa7\x81\x7c\xcf\x7e\x71\xfe\x20\x67\x4d\xa5\x06\x83\x0f\x1f\x3e\x20\x61\x03\x18\x70\xa2\x8e\xa3\x43\x0b\x7e\x09\xbe\xf6\x1a\xe4\x17\x2e\xe0\x6d\x60\x06\x4f\x09\x94\x5a\x05\xea\x43\x5f\x15\xf0\x54\x0d\xeb\xcf\x2b\x25\x6d\xb5\x78\x94\xc3\x44\xd5\x05\x30\xf6\xe3\x94\x3d\x03\xcd\x30\x96\xa8\x7b\x26\x44\x08\x4f\x2e\x4c\xe1\x2f\x08\xc1\xce\x50\xcd\x9a\x76\x71\xa6\xed\x66\x9a\x53\x21\x6e\xa0\x7b\x49\x72\x62\xbc\xc0\x85\xc8\xae\x6a\x9f\x58\xc0\xad\x61\x79\xc0\xf7\xda\x65\xa2\x85\xf9\x2b\xd9\x2a\x31\xae\x4c\x7e\x87\xf6\x25\x5b\x01\xe1\x10\x7d\x2d\x6a\x05\x43\x83\x92\x5b\x95\x77\xe0\xa7\xc1\xce\x40\xe7\x21\x73\x23\xbb\x53\x0f\xda\x81\xb8\x72\x92\x1c\xcf\x04\x7a\x45\xa4\x75\xce\x5b\xdd\xec\xb8\xe7\xc8\x2f\xbf\x40\x10\x54\x8a\xe1\x9f\x99\x28\xcf\x9e\xbf\xff\x1d\xa4\xb7\xf9\xab\x61\xc2\x34\x41\xf7\x09\xb1\x07\x11\x58\xa1\xe8\xed\x2f\xbf\x3c\xf5
2019-03-20 00:27:44 +00:00
2022-04-15 16:41:40 +00:00
func chartsTraefik1019300TgzBytes() ([]byte, error) {
2019-03-20 00:27:44 +00:00
return bindataRead(
2022-04-15 16:41:40 +00:00
_chartsTraefik1019300Tgz,
"charts/traefik-10.19.300.tgz",
2019-03-20 00:27:44 +00:00
)
}
2022-04-15 16:41:40 +00:00
func chartsTraefik1019300Tgz() (*asset, error) {
bytes, err := chartsTraefik1019300TgzBytes()
2019-03-20 00:27:44 +00:00
if err != nil {
return nil, err
}
2022-04-15 16:41:40 +00:00
info := bindataFileInfo{name: "charts/traefik-10.19.300.tgz", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
2022-04-15 16:41:40 +00:00
var _chartsTraefikCrd1019300Tgz = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x00\x2c\x1e\xd3\xe1\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03\xed\x3d\xdb\x72\xdb\xb8\x92\xe7\xd9\x5f\xc1\x9a\x79\x98\x64\xcb\x92\xe3\x4b\xe2\x3d\x79\x73\xec\x64\xc7\x35\xb9\xb8\x2c\xcf\xcc\x6e\x9d\x73\xaa\x06\x22\x21\x09\x6b\x8a\xe4\xf2\x62\x5b\xb3\xb5\xff\xbe\xdd\x0d\xf0\x2a\x92\x80\x24\x4a\x96\x27\xec\x87\xc4\x22\x80\x06\xd0\x00\x1a\xdd\x8d\x46\x23\x0e\x19\x9f\x88\xfb\x81\x1d\x3a\x47\x7f\xdb\x12\xbc\x01\x38\x7f\xfb\x96\xfe\x07\xa8\xfe\x4f\x7f\x1f\x9f\x9e\x9f\x9f\x9e\xbd\x3b\xa5\xef\xc7\x6f\x8e\xcf\x4e\xfe\x66\xbd\xdd\x56\x83\x8a\x90\x44\x31\x0b\x2d\x6b\x17\x55\xed\x23\xc4\x85\xf1\xbf\x9c\xb1\x30\x1e\x2e\xd8\xdc\xed\xb6\x0e\x1c\xe0\x77\x67\x67\x8d\xe3\x7f\x72\x56\x1d\xff\x93\x37\xef\x4e\xff\x66\xbd\xe9\xb6\x19\xf5\xf0\x9d\x8f\x3f\x0b\xc4\x6f\x3c\x8c\x84\xef\xbd\xb7\x1e\x4e\x0e\x1e\xd2\xbf\x8f\xdf\x0c\x8f\xff\x3e\x84\xe1\x38\x70\x78\x64\x87\x22\x88\xe9\xf3\xb5\x07\xe4\x72\xdd\xc8\x8a\x67\xdc\xba\xbc\xbd\x8a\xac\x89\x1f\x5a\x6a\x12\x0d\x0f\x3c\x36\xe7\xef\xad\xc2\x9c\x3a\x88\x17\x01\x7c\x61\x41\xe0\x0a\x9b\x21\x8e\x03\xe6\x79\x7e\x4c\x7f\x46\xef\x0f\x2c\x6b\xe2\x72\x1e\x0f\x21\x2d\x76\xf9\x50\xf8\x47\xe3\xc4\x73\x5c\x3e\x10\xce\x7b\xeb\xfe\x34\x3a\x78\x6e\xfa\xfc\xd5\xa1\xb8\xfe\x6f\x3f\x5e\x5c\x7d\xf9\x38\x9c\x3b\x1d\xd7\xa1\x5d\xff\xc7\x67\x95\xf5\x7f\x7c\x76\xfc\xae\x5f\xff\xbb\x80\x1f\x4b\xab\xf5\xc2\xba\x65\x9e\x3d\xe3\xa1\x65\xe3\x5e\x00\xab\x9c\xc5\x96\x58\x5a\xf3\x49\xc4\x1d\x6b\xbc\xb0\xfe\xa1\xca\xfe\xeb\xd5\x2c\x8e\x83\xe8\xfd\xd1\xd1\x54\xc4\xb3\x64\x3c\xb4\xfd\xf9\x51\x28\x31\x1d\x39\xfc\x61\x40\xd8\xa2\xa3\x38\xe4\xfc\x68\xce\xa2\x18\x3e\x07\xcc\xbe\x67\x53\x8e\x1f\x09\xc7\xeb\x61\xbf\xd6\x9f\x01\x8a\xeb\x3f\xe6\xf3\xc0\x65\x31\x8c\x49\xb7\x75\xac\x2e\xff\x01\x47\x78\xd3\xcb\x7f\xbb\x80\xfa\xf1\x17\xde\x34\xe4\x51\x14\xfa\x49\xcc\x37\x17\x08\xdb\xf9\xff\x09\x24\x9e\x57\xc6\xff\xed\xdb\x77\x27\x3d\xff\xdf\x05\x14\xe5\x3f\xf8\x9b\x3f\xc5\xdc\xc3\x5f\xd1\xf0\xfe\xdf\x23\x94\xc7\x1e\x8e\x0f\xee\x85\x07\xd2\xd8\x25\x50\xca\x9f\xdf\xf2\xc8\x4f\x42\x9b\x5f\xc1\xac\xf1\x04\x09\x74\x73\x1e\x33\x87\xc5\x0c\xa5\xb9\x8a\x70\x67\x59\xb6\xef\xc5\xa1\xef\xba\x3c\x1c\x4c\xb9\x37\xbc\x4f\xc6\x7c\x9c\x08\xd7\xe1\x21\x21\xcf\x44\xcf\x37\xc3\x77\xc3\x13\x28\x61\x87\x9c\x8a\xdf\x89\x39\x87\x91\x99\x07\xef\x2d\x2f\x71\x5d\x48\x91\xb2\x65\x71\x66\x46\xc3\x54\xf0\xc4\x5a\x98\xf0\xfc\x61\x12\x1d\x44\x01\xb7\xb1\xee\x29\xe4\x09\x32\x61\xb4\x94\x45\x22\x53\x2d\x94\xbd\xbb\x96\x78\x6f\x11\x2f\x7d\x76\x45\x14\xff\xb2\x94\xf4\x19\xbe\x52\x72\xe0\x26\x21\x73\x2b\xed\xa1\x94\x08\x3e\x25\x2e\x0b\xcb\x69\x90\x14\xd9\x3e\xca\xc2\x5f\xb1\x6a\xd8\xfd\xb8\x03\xdf\x14\x01\x54\x53\x06\xaa\x93\x0f\xc7\xcc\x0d\x66\xec\x98\x3e\x62\xc1\x19\x9f\xb3\xf7\xea\x97\x65\x01\x1a\xef\xe2\xe6\xfa\xb7\xd3\x51\x25\xc1\xb2\x2a\xc2\x7a\xde\x70\x4b\x44\x30\x38\xe9\x27\xdc\xc6\x2d\x24\x94\x98\x28\xb1\x7c\x58\x40\x12\x84\x50\x43\x18\x8b\x94\x42\x29\x14\xe6\x4a\xe9\x7b\xa5\xda\x9f\xb0\x6d\x32\x1f\x24\xc0\x34\xe1\x52\x74\x50\x7d\x05\xd1\x41\x76\xc8\xf2\x27\xf0\x1d\xda\x15\xf2\x00\x1a\xc5\x3d\x39\x71\x2a\xa8\x21\x13\xb4\xdb\x1f\xff\x37\xb7\xe3\xa1\x35\xe2\x21\xa2\xb1\xa2\x99\x9f\xb8\x0e\xce\x2e\xf8\x19\x03\x06\xdb\x9f\x7a\xe2\xcf\x0c\x37\xd4\xe8\x53\xa5\xc4\xcf\xe2\x0a\x4e\xe1\x81\x04\xe2\x31\xd7\x7a\x60\x6e\xc2\x0f\xa1\x02\xc7\x9a\xb3\x05\xa0\xc1\x5a\xac\xc4\x2b\xe0\xa3\x2c\xd1\xd0\xfa\xe2\x87\x40\x44\x6f\xe2\xbf\xb7\x0a\xc2\x4e\xba\x4a\x40\xe0\x99\x27\xb0\x1e\x16\x47\x34\xe1\xc5\x38\x89\xfd\x30\x42\xd9\x87\xbb\x47\x91\x98\x0e\x58\x68\xcf\x44\x0c\xd8\x93\x90\x1f\x01\x21\x07\xd4\x74\x8f\x56\x0a\x48\xdc\x3f\x86\x6a\x5d\x45\x3f\x55\xda\x2a\x15\xa8\x08\x70\x7a\xd3\x52\x12\xcd\xdb\xd6\x71\xc0\xe9\x4b\xe3\xae\x8a\xcb\xbe\xe4\xe4\xc6\x4f\x48\xa3\xdb\x8f\xa3\x3b\x2b\x6d\x00\x0d\x49\x75\x0c\x88\xfa\x79\xc1\x28\x1f\x08\x24\x1b\x50\x05\x24\x46\x1a\xca\x49\xe8\xcf\x09\x27\xf7\x9c\xc0\x07\x3a\xd3\x0f\xdb\x15\x50\xaa\x82\x34\x4a\xc6\x73\x11\xe3\xe8\xff\x0f\x10\x38\xc6\x11\x1b\x5a\x97\xc4\x40\xac\x31\xb7\x92\x00\x78\x0a\x77\x86\x30\x65\xe1\xeb\x9c\xbb\x97\x2c\xe2\x5b\x1f\x06\xa4\x76\x34\x40\xd2\x9a\x0f\
2022-04-15 16:41:40 +00:00
func chartsTraefikCrd1019300TgzBytes() ([]byte, error) {
return bindataRead(
2022-04-15 16:41:40 +00:00
_chartsTraefikCrd1019300Tgz,
"charts/traefik-crd-10.19.300.tgz",
)
}
2022-04-15 16:41:40 +00:00
func chartsTraefikCrd1019300Tgz() (*asset, error) {
bytes, err := chartsTraefikCrd1019300TgzBytes()
if err != nil {
return nil, err
}
2022-04-15 16:41:40 +00:00
info := bindataFileInfo{name: "charts/traefik-crd-10.19.300.tgz", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
2019-03-20 00:27:44 +00:00
a := &asset{bytes: bytes, info: info}
return a, nil
}
// Asset loads and returns the asset for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func Asset(name string) ([]byte, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
}
return a.bytes, nil
}
return nil, fmt.Errorf("Asset %s not found", name)
}
// MustAsset is like Asset but panics when Asset would return an error.
// It simplifies safe initialization of global variables.
func MustAsset(name string) []byte {
a, err := Asset(name)
if err != nil {
panic("asset: Asset(" + name + "): " + err.Error())
}
return a
}
// AssetInfo loads and returns the asset info for the given name.
// It returns an error if the asset could not be found or
// could not be loaded.
func AssetInfo(name string) (os.FileInfo, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
}
return a.info, nil
}
return nil, fmt.Errorf("AssetInfo %s not found", name)
}
// AssetNames returns the names of the assets.
func AssetNames() []string {
names := make([]string, 0, len(_bindata))
for name := range _bindata {
names = append(names, name)
}
return names
}
// _bindata is a table, holding each asset generator, mapped to its name.
var _bindata = map[string]func() (*asset, error){
2022-04-15 16:41:40 +00:00
"charts/traefik-10.19.300.tgz": chartsTraefik1019300Tgz,
"charts/traefik-crd-10.19.300.tgz": chartsTraefikCrd1019300Tgz,
2019-03-20 00:27:44 +00:00
}
// AssetDir returns the file names below a certain
// directory embedded in the file by go-bindata.
// For example if you run go-bindata on data/... and data contains the
// following hierarchy:
//
// data/
// foo.txt
// img/
// a.png
// b.png
//
2019-03-20 00:27:44 +00:00
// then AssetDir("data") would return []string{"foo.txt", "img"}
// AssetDir("data/img") would return []string{"a.png", "b.png"}
// AssetDir("foo.txt") and AssetDir("notexist") would return an error
// AssetDir("") will return []string{"data"}.
func AssetDir(name string) ([]string, error) {
node := _bintree
if len(name) != 0 {
cannonicalName := strings.Replace(name, "\\", "/", -1)
pathList := strings.Split(cannonicalName, "/")
for _, p := range pathList {
node = node.Children[p]
if node == nil {
return nil, fmt.Errorf("Asset %s not found", name)
}
}
}
if node.Func != nil {
return nil, fmt.Errorf("Asset %s not found", name)
}
rv := make([]string, 0, len(node.Children))
for childName := range node.Children {
rv = append(rv, childName)
}
return rv, nil
}
type bintree struct {
Func func() (*asset, error)
Children map[string]*bintree
}
var _bintree = &bintree{nil, map[string]*bintree{
"charts": &bintree{nil, map[string]*bintree{
2022-04-15 16:41:40 +00:00
"traefik-10.19.300.tgz": &bintree{chartsTraefik1019300Tgz, map[string]*bintree{}},
"traefik-crd-10.19.300.tgz": &bintree{chartsTraefikCrd1019300Tgz, map[string]*bintree{}},
2019-03-20 00:27:44 +00:00
}},
}}
// RestoreAsset restores an asset under the given directory
func RestoreAsset(dir, name string) error {
data, err := Asset(name)
if err != nil {
return err
}
info, err := AssetInfo(name)
if err != nil {
return err
}
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
if err != nil {
return err
}
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
if err != nil {
return err
}
err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
if err != nil {
return err
}
return nil
}
// RestoreAssets restores an asset under the given directory recursively
func RestoreAssets(dir, name string) error {
children, err := AssetDir(name)
// File
if err != nil {
return RestoreAsset(dir, name)
}
// Dir
for _, child := range children {
err = RestoreAssets(dir, filepath.Join(name, child))
if err != nil {
return err
}
}
return nil
}
func _filePath(dir, name string) string {
cannonicalName := strings.Replace(name, "\\", "/", -1)
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
}