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