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

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