2019-08-10 05:07:43 +00:00
|
|
|
// Code generated for package static by go-bindata DO NOT EDIT. (@generated)
|
2019-03-20 00:27:44 +00:00
|
|
|
// sources:
|
2021-02-11 00:23:49 +00:00
|
|
|
// build/static/charts/traefik-9.14.2.tgz
|
|
|
|
// build/static/charts/traefik-crd-9.14.2.tgz
|
2020-09-11 21:51:45 +00:00
|
|
|
// +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
|
|
|
|
}
|
|
|
|
|
2019-08-10 05:07:43 +00:00
|
|
|
// Name return file name
|
2019-03-20 00:27:44 +00:00
|
|
|
func (fi bindataFileInfo) Name() string {
|
|
|
|
return fi.name
|
|
|
|
}
|
2019-08-10 05:07:43 +00:00
|
|
|
|
|
|
|
// Size return file size
|
2019-03-20 00:27:44 +00:00
|
|
|
func (fi bindataFileInfo) Size() int64 {
|
|
|
|
return fi.size
|
|
|
|
}
|
2019-08-10 05:07:43 +00:00
|
|
|
|
|
|
|
// Mode return file mode
|
2019-03-20 00:27:44 +00:00
|
|
|
func (fi bindataFileInfo) Mode() os.FileMode {
|
|
|
|
return fi.mode
|
|
|
|
}
|
2019-08-10 05:07:43 +00:00
|
|
|
|
|
|
|
// Mode return file modify time
|
2019-03-20 00:27:44 +00:00
|
|
|
func (fi bindataFileInfo) ModTime() time.Time {
|
|
|
|
return fi.modTime
|
|
|
|
}
|
2019-08-10 05:07:43 +00:00
|
|
|
|
|
|
|
// IsDir return file whether a directory
|
2019-03-20 00:27:44 +00:00
|
|
|
func (fi bindataFileInfo) IsDir() bool {
|
2019-08-10 05:07:43 +00:00
|
|
|
return fi.mode&os.ModeDir != 0
|
2019-03-20 00:27:44 +00:00
|
|
|
}
|
2019-08-10 05:07:43 +00:00
|
|
|
|
|
|
|
// Sys return file is sys mode
|
2019-03-20 00:27:44 +00:00
|
|
|
func (fi bindataFileInfo) Sys() interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-02-11 00:23:49 +00:00
|
|
|
var _chartsTraefik9142Tgz = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x00\x03\x40\xfc\xbf\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\x03\xec\x5c\x7d\x6f\x1b\x37\x9a\xef\xdf\xfa\x14\x3c\x07\x87\xb5\x01\x59\x7e\x4d\xb2\x75\x0f\x87\x7a\x6d\xa7\xd5\x6d\x6a\x1b\xb6\xb3\xb9\xa2\x58\x24\xd4\x0c\x47\x62\x33\x1a\x6a\xc9\x19\xcb\xda\x62\xbf\xfb\x3d\x2f\x24\x87\x33\x92\x9d\x2c\xae\x4d\x17\x77\x11\xda\x58\x1a\xcd\x90\x0f\x9f\x97\xdf\xf3\x46\xaa\xb6\x52\x15\xfa\xc3\xde\x57\xbf\xe1\x6b\x1f\x5e\x2f\x9f\x3f\xa7\xbf\xf0\xea\xff\xa5\xf7\x07\x47\x2f\x5f\x1e\x1d\xbf\x38\xe2\xeb\x2f\x8f\x5e\x1e\x7f\x25\x9e\xff\x96\x44\x85\x57\xe3\x6a\x69\x85\xf8\x1c\x53\xfd\x2b\xbe\x6a\x2f\xff\xd1\x4c\x95\x73\x3d\xad\x8c\x55\xbf\xfa\x1c\x28\xe0\x17\xc7\xc7\x4f\xc8\xff\x65\x57\xfe\x07\x07\xcf\x0f\x8f\xbe\x12\xfb\x9f\x83\x01\xff\xdf\xe5\xaf\x5c\xed\xf6\x06\xbf\x37\x19\x5f\x5e\xbf\xd3\x2b\xd8\xff\xd9\x4c\xda\x7a\xb4\x92\xf3\xf2\xd7\x9f\xe3\x23\xf6\x7f\xb0\x7f\xb4\xdf\xb7\xff\xa3\x83\x2f\xf6\xff\x59\x5e\x72\xa1\xff\xa2\xac\xd3\xa6\x3a\x11\xf7\x87\x03\xb9\x58\xc4\x8f\x87\xa3\xe3\xd1\xe1\x20\x57\x2e\xb3\x7a\x51\xd3\xa5\x53\x71\xc7\xfa\x22\x26\xd2\xa9\x5c\xfc\xb9\x99\x28\x5b\x29\x00\x11\xa1\xab\xa9\x55\xce\x89\xcc\x54\xb5\x35\x65\xa9\xec\x60\x66\xe6\xea\x44\xcc\xea\x7a\xe1\x4e\xf6\xf6\xbc\xa6\x8d\xb4\xd9\x1b\xe8\x0c\x47\x0b\xdf\x58\xb9\x1c\x4d\x75\x3d\x6b\x26\x8d\x53\x16\x07\x50\x55\x3d\xca\xcc\x3c\x3c\x13\xff\xde\x1f\x8e\x8e\xf6\x72\x93\xb9\x3d\x7f\xd7\x9e\x74\x4e\x01\x80\xe9\xf9\x34\x4e\x50\x9a\xa9\x19\x2d\xaa\xe9\xe0\x83\x5a\x2d\x8d\xcd\xdd\xc9\x60\x57\xf8\x2f\xe1\x9d\x27\x74\x30\x97\xba\xaa\xe1\x7f\x58\x2e\xde\xa0\xe0\x73\x79\x02\x7f\x74\xa9\xbe\xbd\x97\xcd\x54\x21\x05\x03\x21\x2a\x89\xab\xa0\xeb\x74\xb9\xbd\x37\x97\x95\x56\xe5\xa8\x36\xf3\x4c\xfd\xfc\xed\x14\x2f\x76\x9e\xc9\xf9\x9b\xf6\x81\x32\x57\x7f\xff\xb6\xe5\x43\xbc\x11\xaf\x0f\xf8\x6d\xa0\xd3\x99\xc6\x66\x8a\x28\x0b\x6c\x62\x16\x6d\xe2\xcb\x27\xdd\xb4\x8b\x1e\x7e\x37\x43\x3b\x1f\xd4\xab\x05\xcc\x05\xc2\x2e\x75\x26\x51\xb4\x83\xfb\x20\xf5\xaf\x47\x07\x28\xf6\xdf\x5b\x2f\xbf\xbc\x3e\xcf\x2b\x28\xc9\x77\x8d\xce\x55\x09\xd6\xe0\x46\xf3\xfc\x57\x9e\xe3\x23\xf8\xff\xfc\xe5\xcb\x83\x1e\xfe\x1f\xee\x1f\xee\x7f\xc1\xff\xcf\xf1\x7a\x16\x11\xfd\x7b\x80\x07\x41\x61\x80\x68\x95\x61\x30\xb8\x9b\x69\x27\x00\x72\x9b\x39\xc0\xad\x30\x4d\x4d\xd7\x45\x3d\x53\x62\x1a\x6f\x13\x85\xb1\x22\x57\xf7\xaa\x34\x0b\xc0\xd7\xa1\x98\xcb\x4a\x4e\xe1\x9d\x90\x55\x2e\xd4\x03\x40\x75\x8e\x9f\xf0\xa9\x30\x1f\xc2\x91\x20\x38\x1a\x0d\x06\x57\xe4\x60\x64\x59\xea\x7a\x35\x38\x2d\x4b\x51\x99\x6a\x17\xfc\x4e\x0d\xf8\x54\x8a\x42\xc9\xba\x01\xd0\x16\xdb\xaf\xc2\xbb\xca\xd4\x38\x49\x2e\x6b\x63\x57\xa2\x36\x02\xc5\x58\xe3\x1c\x7e\xfc\x1d\x00\x7a\x9a\xaf\x9d\x47\xcc\x41\xd8\x62\xa2\x84\xf1\xb3\x8d\xc4\xe3\x53\xb9\x99\x69\xca\x1c\xef\xce\xb5\x93\x93\x12\xbc\xdd\x36\xa0\x2a\x72\x01\xde\x02\x1f\xe2\x04\xf7\xb2\x6c\xc0\x6c\x30\x76\x12\x05\x78\x09\x1e\x35\xcc\xf1\xab\x0f\x3f\x24\x9e\xce\xe4\xbd\x12\x52\xf8\x47\xc4\x33\xb1\x1d\x58\x18\x1f\x44\xc9\x08\x39\x31\xf7\x40\x11\x49\x11\xd8\x6b\x96\x4e\xcc\x75\xa5\xe7\x40\x0b\xb8\xd0\x42\x4f\x1b\x4b\x0e\x80\x47\x55\xe0\xd5\x85\x29\x58\x62\xe8\x0f\x40\x34\xcf\x9e\x89\xb3\x40\xbe\x67\xbf\xb8\x78\x90\xf3\x45\xa9\x06\x83\xf7\xef\xdf\x23\x61\x03\x18\x70\xaa\x4e\xa2\x43\x0b\x7e\x09\xbe\xf6\x1a\xe4\x17\x2e\xe0\x6d\x60\x06\x4f\x09\x94\x5a\x05\xea\x43\x5f\xe5\xf0\x54\x05\xeb\xcf\x4a\x25\x6d\xb9\x7a\x94\xc3\x44\xd5\x25\x30\xf6\xe3\x94\x3d\x03\xcd\x30\x96\xa8\x7b\x26\x44\x08\x4f\x2e\x4d\xee\x2f\x08\xc1\xce\x50\xcd\x17\xf5\xea\x5c\xdb\xcd\x34\xa7\x42\xdc\x40\x77\x47\x72\x62\xb2\xc2\x85\xc8\xa6\xac\x9f\x58\xc0\x9d\x61\x79\xc0\xf7\xda\x0d\x45\x0d\xf3\x97\xb2\x56\x62\x52\x9a\xec\x03\xda\x97\xac\x05\x84\x43\xf4\xb5\xa8\x14\x0c\x0d\x4a\x6e\x55\xd6\x80\x9f\x06\x3b\x03\x9d\x87\xcc\x8d\xec\x4e\x3d\x68\x07\xe2\xca\x48\x72\x3c\x13\xe8\x15\x91\xd6\x38\x6f\x75\xf3\x93\x96\x23\xbf\xfc\x02\x41\x50\x21\x46\x7f\x61\xa2\x3c\x7b\xfe\xf1\x0f\x90\xde\xe6\xaf\x46\x09\xd3\x04\xdd\x27\xc4\x1e\x44\x60\xb9\xa2\xb7\xbf\xfc\xf2\xd4\x03\x23\x64\xaf\x88\xa3\x03\x10\xe0\x87\xe4\xad\xe7\xb7\xda\x68\x28\x81\x91\xa9\xc1\x2c\xcc\xa2\x41\x56\xe5\xc2\x19\xe6\x1
|
2019-03-20 00:27:44 +00:00
|
|
|
|
2021-02-11 00:23:49 +00:00
|
|
|
func chartsTraefik9142TgzBytes() ([]byte, error) {
|
2019-03-20 00:27:44 +00:00
|
|
|
return bindataRead(
|
2021-02-11 00:23:49 +00:00
|
|
|
_chartsTraefik9142Tgz,
|
|
|
|
"charts/traefik-9.14.2.tgz",
|
2019-03-20 00:27:44 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-02-11 00:23:49 +00:00
|
|
|
func chartsTraefik9142Tgz() (*asset, error) {
|
|
|
|
bytes, err := chartsTraefik9142TgzBytes()
|
2019-03-20 00:27:44 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2021-02-11 00:23:49 +00:00
|
|
|
info := bindataFileInfo{name: "charts/traefik-9.14.2.tgz", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)}
|
2020-12-23 01:28:19 +00:00
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
|
|
}
|
|
|
|
|
2021-02-11 00:23:49 +00:00
|
|
|
var _chartsTraefikCrd9142Tgz = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x00\x8f\x03\x70\xfc\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\x03\xed\x99\xcb\x72\xda\x30\x14\x86\x59\xfb\x29\x34\xe9\xa6\x5d\xc4\xc6\x37\x68\xd9\x65\x20\x8b\xcc\xf4\x36\x90\x76\xd3\xe9\x42\xb1\x15\xec\xc1\xb7\x91\x64\xda\xbc\x7d\x25\x9b\x50\x5b\x40\x9c\x0e\x58\x69\xcb\xf9\x36\x76\x24\x5b\x47\x23\x9d\xff\xd7\x31\xe1\x14\x93\xfb\x78\x75\x19\xd0\xd0\x1a\xf4\xc4\x50\x30\xf6\xfd\xea\x2a\x50\xaf\xd5\xbd\xed\x8e\xc7\xae\x37\x72\xab\x76\x7b\x68\x7b\xce\x00\xf9\x7d\x4d\xa8\x49\xc9\x38\xa6\x08\xe9\x08\xf5\x37\xc2\x1b\xfb\x3f\x8d\x30\xe5\xe6\x03\x4e\x93\xd3\xc6\x90\x1b\x3c\xf2\xbc\x83\xfb\xef\xb8\x63\x65\xff\x9d\xe1\xd8\x1e\xa0\xa1\x8e\x05\x38\xf3\xfd\xc7\x45\xfc\x95\x50\x16\xe7\xd9\x04\xad\x1d\x63\xfd\x78\xff\xce\xb4\x3d\xd3\x31\x42\xc2\x02\x1a\x17\xbc\x6a\xbb\xc9\xc4\x5a\x25\x09\x43\x3c\x22\x68\x3a\x9f\x31\x74\x9f\x53\xb4\xc9\x20\xd3\xc8\x70\x4a\x26\xa8\x91\x50\x06\x7f\x28\x44\x0b\x2e\x8a\x24\x0e\xb0\x1c\xc3\xc0\x59\x96\xf3\xea\x96\x4d\x0c\x84\x44\x2b\x4e\xf2\xa5\x29\xae\x3c\x21\x66\x9c\x5b\x51\x1c\x86\x44\xc4\xba\xe0\xb4\x24\x17\xc6\x4b\x2f\xcf\x7f\x4f\x53\xff\xf3\xeb\xab\xd9\x87\x6b\x33\x0d\x4f\x1c\xa3\x53\xff\xb6\xa7\xe8\xdf\xf6\xec\x11\xe8\x5f\x07\xaf\x5a\x82\xbd\x42\x73\x9c\x05\x11\xa1\x28\x90\x67\x81\x10\x3a\xe6\x28\xde\x91\x7d\xc9\x48\x88\xee\x1e\xd0\xb7\xcd\xbb\xdf\x5f\x47\x9c\x17\x6c\x62\x59\xcb\x98\x47\xe5\x9d\x19\xe4\xa9\x45\xeb\x91\xac\x90\xac\x2f\xab\xd1\x98\xc5\x29\x21\x56\x8a\x19\x17\xcd\x05\x0e\x56\x78\x49\x64\x63\x35\xc6\x1b\x13\xc4\xfe\x02\x34\xf5\xcf\x49\x5a\x24\x98\x8b\x3d\x39\x6d\x8c\x3f\xaf\xff\x84\x23\x0c\xa1\xfe\xd3\xc1\xfe\xfd\x8f\xb3\x25\x25\x8c\xd1\xbc\xe4\xe4\xf8\x82\xb0\xcb\xff\x3d\x57\xf5\x7f\xdf\xf7\xc1\xff\xb5\xd0\xac\xff\xc4\x3d\xf9\xc9\x49\x26\xff\x62\xe6\xea\x2d\x93\x05\xd9\xda\xbe\x23\x1c\xdb\xc6\x2a\xce\xc2\x09\x9a\x8a\xe5\xca\xd3\x39\x61\x79\x49\x03\x32\x13\xa9\x93\xc5\x55\x61\x97\x8a\x87\x42\x51\xcd\xc9\xaa\xae\x2e\x04\x9b\x39\xc4\xcc\xc7\x2a\x31\xc8\x33\x8e\xe3\x2c\x37\x4b\x66\xb0\x82\x04\xf2\xf9\xa5\x78\xa6\xd8\x56\x8e\xad\x47\x10\xda\x56\xa4\x6b\x1b\x27\x45\x24\x66\x52\x07\xa8\xea\x47\x84\xea\x69\xdd\xd4\xb1\xe6\x32\x56\xd5\x5c\x24\x25\xc5\x89\x32\x89\xaa\x87\x89\xa6\x32\xc1\xb4\xdd\x27\xba\x58\x90\xcb\x6a\xf5\xa3\x1c\x5b\x1c\x4e\x24\x3c\x8b\xf3\xa8\x5b\xff\x3c\x28\x8e\xb4\x80\x4e\xfd\xfb\xaa\xff\x8f\x9c\x91\x0b\xfa\xd7\x81\x1e\xfd\x8b\x1c\xd2\x69\x01\xb7\xd3\xcf\x07\x5d\x40\x4e\xe5\x09\x23\x10\xdd\x67\xe5\x05\xdd\xfa\x2f\xc3\xfe\xf5\x6f\xef\xea\x1f\xce\x7f\x2d\xe8\xd1\xbf\xc8\xa1\xfd\xfa\xef\xc9\x00\xbe\xcc\x0e\x1b\x80\x9c\xcb\x13\x06\x20\xba\xcf\xc9\x00\xf6\xeb\x3f\x8d\xc3\x30\x21\x3f\xb0\x58\x95\x13\xfc\x1e\xdc\xa9\x7f\x67\xa7\xfe\x77\x45\x13\xe8\x5f\x03\xfd\xe9\xbf\x99\x43\xfd\x1e\xfd\x1f\xb6\x91\x5a\xa2\x6f\x4c\x40\xd1\x7b\xda\x7c\xe1\x6c\xa4\xbe\x97\xfd\xfa\x67\x84\xca\x95\x17\x9d\x19\x2b\x72\xca\x8f\x73\x81\xee\xf3\xdf\x55\xcf\xff\x91\x3f\x06\xfd\xeb\xa0\x3f\xfd\xef\xe6\x50\xbf\x2e\xb0\xa8\xe3\xdd\x3e\xc6\x6b\x79\xc1\xce\x64\x14\x47\x50\xfb\xf7\xf9\xc2\x4b\x6f\x55\x2f\xec\xd7\x3f\x4f\x58\x5e\xfd\xd3\xef\x14\xc7\xff\x33\xce\x7f\xf5\xfb\xdf\x77\x5c\xa8\xff\xb5\xd0\x9f\xfe\x1b\x39\xd4\xaf\xf0\x6f\xdf\x2f\x3e\x55\x81\x5a\x8a\xff\x1d\x5e\x91\xfa\xb6\xe3\xec\xcf\x7e\xc9\x41\xfd\x8b\x7d\x3e\x4d\xf5\xff\x0c\xfd\xdb\xbe\xaa\xff\x21\x7c\xff\xeb\xa1\x57\xfd\x6f\x72\xa8\xe7\x0f\x7f\xa1\xff\x85\x0c\xa4\xca\xbf\x8e\xbe\xab\x7e\xb6\x79\x18\xc4\x3f\x38\xa8\xff\xba\x55\x56\x45\x71\x70\xb4\x0b\x74\xea\xdf\xf3\x76\x7e\xff\xb3\xa1\xfe\xd7\x42\x8f\xfa\x57\x72\xa8\xe7\x22\xa0\x7e\x75\x51\x47\x6b\x5b\x41\x7b\x22\xaa\x21\xb4\x7a\xc1\x16\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf8\x67\xf8\x05\x26\x58\x5b\x9f\x00\x50\x00\x00\x01\x00\x00\xff\xff\xba\xe5\x8b\x75\x8f\x03\x00\x00")
|
2020-12-23 01:28:19 +00:00
|
|
|
|
2021-02-11 00:23:49 +00:00
|
|
|
func chartsTraefikCrd9142TgzBytes() ([]byte, error) {
|
2020-12-23 01:28:19 +00:00
|
|
|
return bindataRead(
|
2021-02-11 00:23:49 +00:00
|
|
|
_chartsTraefikCrd9142Tgz,
|
|
|
|
"charts/traefik-crd-9.14.2.tgz",
|
2020-12-23 01:28:19 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-02-11 00:23:49 +00:00
|
|
|
func chartsTraefikCrd9142Tgz() (*asset, error) {
|
|
|
|
bytes, err := chartsTraefikCrd9142TgzBytes()
|
2020-12-23 01:28:19 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2021-02-11 00:23:49 +00:00
|
|
|
info := bindataFileInfo{name: "charts/traefik-crd-9.14.2.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){
|
2021-02-11 00:23:49 +00:00
|
|
|
"charts/traefik-9.14.2.tgz": chartsTraefik9142Tgz,
|
|
|
|
"charts/traefik-crd-9.14.2.tgz": chartsTraefikCrd9142Tgz,
|
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
|
|
|
|
// 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{
|
2021-02-11 00:23:49 +00:00
|
|
|
"traefik-9.14.2.tgz": &bintree{chartsTraefik9142Tgz, map[string]*bintree{}},
|
|
|
|
"traefik-crd-9.14.2.tgz": &bintree{chartsTraefikCrd9142Tgz, 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, "/")...)...)
|
|
|
|
}
|