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

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