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