1
0
mirror of https://github.com/rancher/rke.git synced 2025-07-16 08:25:51 +00:00
rke/data/bindata.go

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