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