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