1
0
mirror of https://github.com/rancher/rke.git synced 2025-06-29 16:57:14 +00:00
rke/data/bindata.go

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