1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-05 03:28:08 +00:00
rke/data/bindata.go

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