1
0
mirror of https://github.com/rancher/rke.git synced 2025-06-30 17:22:07 +00:00
rke/data/bindata.go

247 lines
119 KiB
Go
Raw Normal View History

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