nano-run/server/runner/embedded/static/bindata.go

335 lines
184 KiB
Go
Raw Normal View History

2020-10-06 04:03:07 -03:00
// Code generated by go-bindata. (@generated) DO NOT EDIT.
// Package static generated by go-bindata.// sources:
// ../../templates/static/css/bootstrap-material-design.min.css
package static
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
"net/http"
"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
}
// Name return file name
func (fi bindataFileInfo) Name() string {
return fi.name
}
// Size return file size
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
// Mode return file mode
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
// ModTime return file modify time
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
// IsDir return file whether a directory
func (fi bindataFileInfo) IsDir() bool {
return fi.mode&os.ModeDir != 0
}
// Sys return file is sys mode
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
type assetFile struct {
*bytes.Reader
name string
childInfos []os.FileInfo
childInfoOffset int
}
type assetOperator struct{}
// Open implement http.FileSystem interface
func (f *assetOperator) Open(name string) (http.File, error) {
var err error
if len(name) > 0 && name[0] == '/' {
name = name[1:]
}
content, err := Asset(name)
if err == nil {
return &assetFile{name: name, Reader: bytes.NewReader(content)}, nil
}
children, err := AssetDir(name)
if err == nil {
childInfos := make([]os.FileInfo, 0, len(children))
for _, child := range children {
childPath := filepath.Join(name, child)
info, errInfo := AssetInfo(filepath.Join(name, child))
if errInfo == nil {
childInfos = append(childInfos, info)
} else {
childInfos = append(childInfos, newDirFileInfo(childPath))
}
}
return &assetFile{name: name, childInfos: childInfos}, nil
} else {
// If the error is not found, return an error that will
// result in a 404 error. Otherwise the server returns
// a 500 error for files not found.
if strings.Contains(err.Error(), "not found") {
return nil, os.ErrNotExist
}
return nil, err
}
}
// Close no need do anything
func (f *assetFile) Close() error {
return nil
}
// Readdir read dir's children file info
func (f *assetFile) Readdir(count int) ([]os.FileInfo, error) {
if len(f.childInfos) == 0 {
return nil, os.ErrNotExist
}
if count <= 0 {
return f.childInfos, nil
}
if f.childInfoOffset+count > len(f.childInfos) {
count = len(f.childInfos) - f.childInfoOffset
}
offset := f.childInfoOffset
f.childInfoOffset += count
return f.childInfos[offset : offset+count], nil
}
// Stat read file info from asset item
func (f *assetFile) Stat() (os.FileInfo, error) {
if len(f.childInfos) != 0 {
return newDirFileInfo(f.name), nil
}
return AssetInfo(f.name)
}
// newDirFileInfo return default dir file info
func newDirFileInfo(name string) os.FileInfo {
return &bindataFileInfo{
name: name,
size: 0,
mode: os.FileMode(2147484068), // equal os.FileMode(0644)|os.ModeDir
modTime: time.Time{}}
}
// AssetFile return a http.FileSystem instance that data backend by asset
func AssetFile() http.FileSystem {
return &assetOperator{}
}
var _cssBootstrapMaterialDesignMinCss = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\x6d\x73\xeb\x38\x92\x20\x0a\x7f\xdf\x5f\xa1\x3d\x15\x27\xaa\xdc\x25\xa9\xa8\x37\xcb\x96\xa3\x2a\x7a\xa6\x63\x9e\xd8\x89\x98\xde\x0f\xb3\xfb\xe1\xb9\x5b\x5b\x37\x82\x12\x29\x99\x63\x4a\xd4\x52\xf4\xb1\xdc\x0e\xcf\x6f\xbf\x41\xbc\x90\x78\xc9\x04\x12\xa0\xce\x4c\xdf\x88\x3b\xee\xa9\x63\x13\x99\x89\x44\x22\x91\x48\x24\x12\xc0\x74\x97\xd6\xd9\xc7\xbe\x3a\x35\x93\x4b\xf1\xb7\x7c\x33\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\x02\x34\x79\x5a\x6e\x7e\x48\x92\xc7\xfb\x87\x87\xa7\xc9\x64\xf7\x9e\x9e\xda\x3f\xb7\xbb\x6c\xf9\x34\x99\xbc\x3d\x17\x0d\x23\xb7\x67\xa8\xe9\xfb\xe6\x87\xfb\xdd\x7a\xb5\xce\xc4\x9f\x93\x2c\xad\x5f\x36\x3f\x2c\x96\x8b\x74\xc9\x98\xab\x8b\x63\x5a\xbf\x2b\x04\x2f\xf9\xae\x3a\x65\xec\x5b\x87\x79\x79\xdd\xed\xf2\xcb\x45\xe1\xa2\x38\xed\xab\xcd\x0f\xc9\x22\x7d\xdc\xb3\x6a\xd3\xfa\x54\x9c\x0e\x6d\xc5\xab\xf5\x7c\xfe\x34\x99\x64\x6d\xbb\x6a\xa5\xa5\x25\xd3\x90\x1f\xf6\xab\xf6\x87\x01\xb4\x8c\x2c\xe7\xed\xcf\xd3\x64\xb2\xad\xf3\xf4\xe5\x5c\x15\xa7\x66\x72\xbd\x6c\x12\xfd\xcb\xe5\xb8\x59\xad\xef\xcf\x57\xfd\xeb\x31\xdb\xac\xef\x1f\xcc\xaf\xe5\x61\xf3\xf8\x38\x37\xbf\x5e\xcb\xcd\x6c\x9e\x24\xec\x33\xd3\xd8\x7d\x7a\x2c\xca\xf7\xc9\x25\x3d\x5d\x26\x97\xbc\x2e\xf6\x9b\x2f\xff\x5a\x6d\xab\xa6\xfa\x32\xfe\xf2\xdf\xf2\xf2\x5b\xde\x14\xbb\xf4\xcb\xf8\xcb\x3f\xd4\x45\x5a\x7e\x19\xf7\x70\x06\x81\x63\x75\xaa\x2e\xe7\x74\x97\x6f\xfe\xc7\xff\xef\xaf\xd5\xa9\x9a\xfc\x6b\x7e\x78\x2d\xd3\x7a\xfc\xd7\xfc\x54\x56\xe3\xbf\x56\xa7\x74\x57\x8d\xff\x52\x9d\x2e\x55\x99\x5e\xc6\x5f\xfe\xa5\xd8\xe6\x75\xda\x14\xd5\x69\xd4\x82\x7f\x19\x7f\xf9\x4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\xa6\xcc\xf7\xcd\xd3\x36\xdd\xbd\xb4\x1c\x9e\x32\x21\x91\x1f\xf6\x69\xfb\xf3\xf9\x7b\x93\x6e\x8b\x53\x96\x5f\x7f\xfd\x32\x99\x7d\xf9\x63\xb3\xaf\x76\xaf\x97\x8f\xea\xb5\x69\xe9\x6f\x92\xff\x5a\x1c\x5b\x31\xa5\xa7\xe6\xf3\xb9\x56\xbb\x7e\x57\x9d\x9a\xfc\xd4\xb4\x7
func cssBootstrapMaterialDesignMinCssBytes() ([]byte, error) {
return bindataRead(
_cssBootstrapMaterialDesignMinCss,
"css/bootstrap-material-design.min.css",
)
}
func cssBootstrapMaterialDesignMinCss() (*asset, error) {
bytes, err := cssBootstrapMaterialDesignMinCssBytes()
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "css/bootstrap-material-design.min.css", size: 437760, mode: os.FileMode(436), modTime: time.Unix(1516718261, 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) {
canonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[canonicalName]; 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) {
canonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[canonicalName]; 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){
"css/bootstrap-material-design.min.css": cssBootstrapMaterialDesignMinCss,
}
// 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("nonexistent") would return an error
// AssetDir("") will return []string{"data"}.
func AssetDir(name string) ([]string, error) {
node := _bintree
if len(name) != 0 {
canonicalName := strings.Replace(name, "\\", "/", -1)
pathList := strings.Split(canonicalName, "/")
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{
"css": &bintree{nil, map[string]*bintree{
"bootstrap-material-design.min.css": &bintree{cssBootstrapMaterialDesignMinCss, 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 {
canonicalName := strings.Replace(name, "\\", "/", -1)
return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...)
}