1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-20 10:59:21 +00:00
Files
rke/data/bindata.go

247 lines
3.1 MiB
Go
Raw Normal View History

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