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

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