1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-30 13:02:45 +00:00
rke/data/bindata.go

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