1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-23 17:08:36 +00:00
rke/data/bindata.go

247 lines
1001 KiB
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
}
2021-08-02 20:31:44 +00:00
var _dataDataJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\xeb\x72\xdb\x48\x96\x2e\xfa\xbf\x9f\x22\x43\x9e\x88\xea\xe9\x63\x50\xa2\x2e\x94\xac\x89\xf9\x21\x4b\xb2\xcd\x28\x5b\xe2\x96\x64\xd7\x74\xb4\x66\xab\x21\x20\x49\x62\x04\x22\x51\x00\x28\x5b\xe5\xae\x1d\xe7\x35\xce\xeb\x9d\x27\xd9\x91\x99\xb8\x23\x41\x02\xe0\x45\xbc\x7c\x9a\x88\xe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82\xff\x48\x9d\xc0\x32\xc4\xe4\x6b\x01\x7b\xa2\x8e\xf6\x5d\xee\xba\x42\x51\xe9\x75\xa2\x8d\x98\x49\x79\x8a\x70\x8b\x46\x89\x0c\xb1\x7a\x7d\xcd\xa5\x9e\xf6\x3b\x93\x13\x98\x2a\xc3\x70\x2c\xed\xd1\x72\x34\xd3\xf2\xf8\xa7\x5d\xe6\x06\xbb\x86\x63\xed\x3e\x5a\x4e\x3a\x09\x5f\x9c\x71\x1a\x1a\x18\x22\x8d\x43\x83\x96\x99\x08\xaf\x3e\xf3\x0c\xaa\x39\xcc\xa4\x1a\x1f\x04\x43\x0f\xb8\x38\xe3\x39\xe2\x34\xcf\xd4\x09\xb4\xdf\x5d\x3f\x23\x0c\x46\xfa\x13\xd5\x2c\x57\xa4\xf6\xb5\x71\x60\xd9\x9a\x31\xd4\x43\xb9\x97\xee\xaf\x43\x83\xef\xcc\x7b\x0a\xc5\x22\xff\x6a\x38\x56\xb2\xfb\x74\x53\x63\x8e\xfd\x52\x94\x36\x1e\xf5\x99\xfd\x2c\xfa\x10\xb7\x5f\xfe\xd6\x12\xbf\xc5\x9b\xc1\xa3\xfa\xc8\x72\x06\x3c\xa5\x43\x85\x28\xd3\x2c\xd3\xa6\x1a\xdf\x9f\x6c\x2c\x0a\x3d\xd8\x1b\x61\x73\xec\x1d\x45\x63\xf0\xcc\xfb\xbc\x1f\xff\x8b\xd9\xe3\x11\x0d\xe7\x27\x5e\x2e\xcf\xba\xb7\x6b\x5b\x8f\xbb\xe1\x26\xda\x95\xa9\x22\xdd\x96\xdb\x65\xae\xc7\x7e\xbc\x24\xfb\x6c\x48\x75\x3b\x18\xfe\xa1\xe5\x35\x67\x7b\xff\x58\x6c\xbb\x76\xae\x21\xb9\xd2\xce\x99\x13\x78\xcc\xb6\xa9\x57\x75\xeb\x1a\x7a\x10\xae\x61\xc3\x32\xbd\xc2\x12\x94\xbb\x7b\xec\x04\xfa\x60\x40\x4d\xcd\xb0\xd9\xb8\xb0\xc3\xa5\x20\xe7\x82\x59\x7c\xd6\x3c\x36\x0e\x17\x47\x66\xa7\x87\xda\x7e\xc8\xfc\xc0\xd5\x83\xa1\xe6\x7a\xec\xd9\xe2\x3a\x56\x34\x36\x9b\xd6\x0e\xb5\x98\x4d\x8d\xa0\xb0\x2b\x78\x63\x47\xcc\xb1\x02\xc6\x55\x95\x6e\x50\xbe\xd7\x2d\x26\xda\x75\xb8\xe7\xc7\xaa\x92\x99\x1a\x7d\x96\x1a\x3a\xbd\xa2\x8f\x46\xa9\x34\xa5\xea\x34\xa0\xde\xc8\x72\xf4\x80\x9
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
}
2021-08-02 20:31:44 +00:00
info := bindataFileInfo{name: "data/data.json", size: 2560197, 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, "/")...)...)
}