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