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