focalboard/server/services/store/sqlstore/initializations/bindata.go

234 lines
24 KiB
Go
Raw Normal View History

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