1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-10 05:43:56 +00:00
rke/data/bindata.go

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