1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-23 19:37:22 +00:00
rke/data/bindata.go

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