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