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

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