1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-02 18:22:33 +00:00
rke/data/bindata.go

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