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