This repository has been archived on 2019-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
mumbledj/bindata.go

236 lines
20 KiB
Go
Raw Normal View History

2016-06-21 02:16:05 +02:00
// Code generated by go-bindata.
// sources:
// config.yaml
// DO NOT EDIT!
package main
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
}
func (fi bindataFileInfo) Name() string {
return fi.name
}
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
func (fi bindataFileInfo) IsDir() bool {
return false
}
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
var _configYaml = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xc4\x5a\x7b\x6f\x1b\xb7\xb2\xff\xdf\x9f\x82\x55\x6e\x70\x13\xc0\x55\xe2\xdc\xbe\x60\xe4\xa6\x48\x9d\x9c\x53\x1f\xc4\x4d\x91\xb8\x05\xfa\xd7\x82\xd2\x72\x25\xd6\xbb\xe4\x9e\xe5\xae\x64\xf5\xd3\x9f\x79\x90\xdc\xa7\x2c\xc9\x29\x70\x7c\x2f\x7a\x22\xee\x70\x66\x38\x2f\xfe\x66\x76\x9f\x88\x9b\xa6\x58\xe4\xea\xdd\xbf\xce\x9e\x88\x9f\x76\xe2\x46\xd6\xf5\x5a\xab\x46\xfc\xb3\xd2\x6a\xa5\x2a\x58\xbd\xb2\xe5\xae\xd2\xab\x75\x2d\x9e\x2d\x9f\x8b\x57\x2f\x2f\xbe\x1b\x51\x89\x67\x37\xd7\xb7\xe2\x83\x5e\x2a\xe3\xd4\x73\xd8\xb3\xb4\x26\xd3\xab\xf9\x4e\x16\xf9\xd9\x99\x2c\x75\x72\xa7\x76\xee\xf2\xec\x4c\xc0\xdf\x13\xf1\x87\x6d\x6e\x9b\x85\x12\x6f\x7f\xbd\x16\xf0\x60\x4e\xcb\x3b\xdb\xd4\xb0\x78\x29\x66\xb3\x40\xf7\xd9\x36\x26\xbd\xca\x6d\x93\xf6\x49\x9f\x88\x5f\x3e\xde\xbe\xbf\x14\xb7\xeb\xc8\x43\x68\x87\x1c\x2a\xb1\xcc\xb5\x32\xb5\xb8\x7e\xc7\xa4\x0e\x59\x2c\x91\x05\x33\x3e\x4b\x55\x26\x9b\xbc\x6e\x95\x79\xc7\x0b\xa0\x72\x51\xe0\xce\xda\x0a\x50\x4d\x96\x25\x30\x4a\xe9\x97\xad\xfb\x62\xaf\x33\x14\x25\x52\x2b\x8c\xad\xc5\x56\xc2\x26\x19\xb7\x2f\x76\xc2\x8b\x38\x17\x4e\x11\x3b\x55\x94\xf5\x4e\xb8\xba\xd2\x66\x25\x9e\xcd\x66\xcf\x99\x9d\xdf\x01\x7a\xfd\xac\xf2\xdc\x7e\x25\xae\x85\x2c\x80\x13\xca\x13\xb7\xbb\x52\x89\xaf\xd6\x2a\x2f\x45\x66\x2b\x58\xcd\xb5\xab\x85\xcd\x68\x97\x34\xa9\x9b\xcf\x46\x07\x58\x4b\x63\x54\x4e\xf4\x35\x58\x06\xf8\x90\x74\x53\x83\x83\x9a\xd2\x1a\xf4\x8a\x51\xcb\x5a\x5b\x33\x79\xa0\xad\x76\xeb\xe1\x6e\xbf\x05\xff\x89\xab\x95\xb5\x51\xd0\xc1\xf3\x31\x59\xd7\xa1\x57\xac\x3c\x6e\x6a\x9c\xc2\xff\x29\x73\xb9\x13\xb2\x49\xb5\x15\x99\xce\x95\x9b\x93\x53\xeb\xad\x15\xae\x29\x4b\x5b\xd5\xe0\x83\xe5\xda\x42\x64\x39\x21\x2b\x25\x66\x59\x56\x94\x6a\x35\x13\xc8\x66\x26\x37\xa0\xdf\x66\xc6\xf2\x90\x95\xaa\x12\x6f\xa0\xcb\x48\x0a\x4e\xff\x77\xa3\x1a\x15\x3d\xfe\x49\x82\x09\xe0\x38\xb2\x16\x45\x03\x56\x05\x77\x17\x70\x12\x38\xb8\xba\x5f\x2a\x95\xb2\xdb\xe1\x38\x2b\x0c\x6d\x09\xff\x92\xcb\x3b\xe1\xee\x74\xc9\x82\xe8\x77\x82\xbf\x93\x0a\x59\x5d\x8a\x97\xf3\x6f\x1f\xcb\x1c\xb5\x26\xdf\xb6\xfc\xc3\xd2\x3e\x11\x37\xf2\x5e\x17\x4d\xe1\xf5\x4a\x1b\xa2\x30\x42\x1b\x70\x08\xd8\x03\x62\x43\x7c\x66\xcf\xbc\x24\x77\x36\xa6\x52\xe8\x9d\x25\x1a\x33\x90\xb3\xa8\x42\xde\x27\x7c\x9c\xb0\x0e\x92\x26\xe5\x38\x51\x82\xbe\x41\xb5\x87\x24\x04\x1a\x37\x10\xe1\x12\xe0\x90\x84\xa7\x97\xe2\xdb\x28\xe8\xda\x09\xb7\x6e\xb2\x2c\xc7\x00\x52\x46\x42\x3d\x4a\xc5\x76\xad\x4c\x8c\x44\x57\xcb\xaa\x76\x3f\x12\xbd\x6c\x6a\x5b\x80\xae\xcb\x84\x37\xa9\x04\xb5\xce\x64\xee\x54\x60\xf8\xd6\x18\xc8\xfb\xa5\xf2\x26\xd2\x06\x94\x2c\xd8\x4a\xe0\x17\x62\xaa\x56\xda\x18\x94\x07\x39\xc5\xf1\x87\x9a\x2d\x80\xdc\x4b\xf1\x2c\x12\xa3\xb6\x5e\xff\x4b\x60\xd7\x80\x8c\xb3\x36\x8f\x62\x4c\xbd\x4d\x53\x30\x81\x63\x65\xd7\xb6\xc9\x53\x90\x54\x63\x66\xf4\xb3\x88\x6d\x22\x99\x1a\x62\xf4\xe2\xd5\xf7\xf3\x97\xf0\x7f\x17\x31\x47\x7e\x85\xa0\x3f\x92\x0d\xe6\x07\xf0\xf8\xee\x9b\xef\xff\xef\x87\x76\xbf\x74\x6e\x6b\xab\x94\x1c\x13\x34\x85\x73\xc2\x7e\xa7\xaa\x8d\xaa\x46\xb9\x6f\xe0\xec\x7e\xd3\xa1\x9c\x0e\x74\xdd\xa4\xfe\x0d\xd8\x1a\x59\x28\x12\x18\x6e\x13\x26\x6f\xfc\x23\x20\x0f\x0f\xe2\xb6\x7f\x40\xba\x97\xb2\x5e\xfb\x62\x00\xb1\x75\xf1\x8a\x6a\x00\x17\xbc\x06\xbc\x64\xc0\xc9\x92\x94\x97\x90\xfd\xa2\x02\x9f\x39\x28\x66\x10\x1c\xb8\x61\xf2\x1c\x81\x07\x5c\x07\x86\xb2\xed\xd0\x89\x90\x53\x02\xdb\x7a\xf7\x0e\x5b\x3e\x04\x5f\xf0\x80\xc4\x1c\x83\x14\x6b\xa0\x0e\xb5\x21\xf0\x63\x8c\xb9\xa9\xa7\x70\x4b\x40\xe5\xc2\x7b\x02\x2c\xaf\xb3\x1d\x31\x5d\xaa\xaa\xd6\x19\x9e\x4d\x61\xf8\xe1\x12\xbb\x06\x8f\xee\xd9\x01\x0b\x87\xa7\x35\xcb\xdd\x5c\x5c\xd7\x78\xa0\x05\xe4\x18\x9e\x24\x57\x72\x03\xa1\xbd\x86\x25\x6b\xce\xc5\xa2\xa9\x45\xaa\x1d\x66\x8d\xd0\x40\xc8\xc5\x1c\x8b\xe5\x5a\x6e\xe0\xb0\x9e\xa1\x76\xae\x01\x55\xfa\x11\x21\x83\x60\x34\x39\xec\xa8\x1a\x4e\x8a\x02\x2e\x14\x5d\x22\x43\x03\xa9\x67\xb0\xfa\x82\xa2\x7d\xe7\x86\xd3\x0e\x72\xaf\xeb\xd7\xee\x41\xd1\x2d\x53\x2e\x1b\xd2\x1c\xef\x3a\xdc\xd9\x75\xdb\x3e\xc9\x08\x0f\xf6\x49\xf7\xd0\xe1\x38\x81\x40\xdc\x95\xf7\x76\xb9\xc4\x94\xaf\xed\x1d\xc0\x1e\xdc\xa6\x8d\xae\xb5\xcc\xf5\x5f\x2a\xc6\xce\x56\xd7\
2016-06-21 02:16:05 +02:00
func configYamlBytes() ([]byte, error) {
return bindataRead(
_configYaml,
"config.yaml",
)
}
func configYaml() (*asset, error) {
bytes, err := configYamlBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "config.yaml", size: 13596, mode: os.FileMode(420), modTime: time.Unix(1468207090, 0)}
2016-06-21 02:16:05 +02: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){
"config.yaml": configYaml,
}
// 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{
"config.yaml": &bintree{configYaml, 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, "/")...)...)
}