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