1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-08 21:03:35 +00:00
rke/data/bindata.go

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