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

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