gotty/server/asset.go

309 lines
535 KiB
Go
Raw Normal View History

2015-08-16 09:47:23 +00:00
// Code generated by go-bindata.
// sources:
2015-08-30 07:27:40 +00:00
// bindata/static/favicon.png
2015-08-23 11:40:18 +00:00
// bindata/static/index.html
// bindata/static/js/gotty.js
// bindata/static/js/hterm.js
2015-08-16 09:47:23 +00:00
// DO NOT EDIT!
2017-02-25 22:37:07 +00:00
package server
2015-08-16 09:47:23 +00:00
import (
"bytes"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
2015-08-20 07:45:06 +00:00
"os"
2015-08-16 09:47:23 +00:00
"path/filepath"
2015-08-20 07:45:06 +00:00
"strings"
"time"
2015-08-16 09:47:23 +00:00
)
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 {
2015-08-20 07:45:06 +00:00
name string
size int64
mode os.FileMode
2015-08-16 09:47:23 +00:00
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
}
2017-02-25 22:37:07 +00:00
var _staticFaviconPng = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x00\x5f\x03\xa0\xfc\x89\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\x00\x00\x20\x00\x00\x00\x20\x08\x03\x00\x00\x00\x44\xa4\x8a\xc6\x00\x00\x00\x19\x74\x45\x58\x74\x53\x6f\x66\x74\x77\x61\x72\x65\x00\x41\x64\x6f\x62\x65\x20\x49\x6d\x61\x67\x65\x52\x65\x61\x64\x79\x71\xc9\x65\x3c\x00\x00\x01\xa4\x50\x4c\x54\x45\x1c\x1c\x1c\x2e\x2e\x2e\x1a\x1a\x1a\x25\x25\x25\x26\x26\x26\x24\x24\x24\x4e\x4e\x4e\x5f\x5f\x5f\x20\x20\x20\x1e\x1e\x1e\x1f\x1f\x1f\x22\x22\x22\x1d\x1d\x1d\x21\x21\x21\x3b\x3b\x3b\x19\x19\x19\x16\x16\x16\x2c\x2c\x2c\x29\x29\x29\x28\x28\x28\x27\x27\x27\x2b\x2b\x2b\x2a\x2a\x2a\x2d\x2d\x2d\x2f\x2f\x2f\x00\xac\x3a\x00\xa9\x3a\x60\x60\x60\x3a\x3a\x3a\x00\xae\x3b\x05\x9a\x38\x5e\x5e\x5e\x25\x24\x24\x52\x52\x52\x18\x18\x18\x39\x39\x39\x55\x55\x55\x5c\x5c\x5c\x5d\x5d\x5d\x37\x37\x37\x32\x32\x32\x50\x50\x50\x61\x61\x61\x5b\x5b\x5b\x4f\x4f\x4f\x58\x58\x58\x53\x53\x53\x59\x59\x59\x30\x27\x2d\x28\x1e\x24\x56\x56\x56\x54\x54\x54\x14\x14\x14\x2f\x2c\x2e\x17\x17\x17\x1b\x1b\x1b\x44\x44\x44\x35\x35\x35\x33\x33\x33\x4a\x4a\x4a\x36\x36\x36\x38\x38\x38\x20\x62\x36\x34\x34\x34\x30\x30\x30\x31\x31\x31\x23\x24\x24\x75\x75\x75\x2a\x22\x27\x20\x55\x32\x2e\x2b\x2d\x27\x1f\x24\x2e\x2a\x2d\x29\x26\x28\x62\x62\x62\x25\x21\x24\x26\x25\x25\x26\x2e\x29\x2b\x28\x2a\x20\x60\x36\x1f\x3b\x29\x2d\x25\x2b\x1f\x53\x32\x11\x70\x32\x25\x24\x25\x1d\x4f\x2e\x25\x29\x27\x1f\x52\x31\x00\xb1\x3b\x27\x2e\x2a\x77\x77\x77\x28\x2f\x2b\x2a\x31\x2d\x00\xb6\x3c\x23\x23\x23\x28\x25\x27\x2f\x2e\x2f\x11\x71\x32\x5a\x5a\x5a\x14\x66\x30\x30\x28\x2d\x2e\x25\x2c\x22\x5a\x35\x1e\x51\x2f\x2e\x31\x2f\x29\x21\x26\x2a\x3e\x31\x25\x26\x26\x2b\x32\x2d\x1c\x4f\x2d\x2c\x24\x2a\x30\x26\x2c\x28\x20\x25\x57\x57\x57\x00\xae\x3a\x27\x25\x26\x2a\x27\x29\x2c\x29\x2b\x25\x2d\x28\x00\xaf\x3b\x2c\x34\x2f\x22\x23\x23\x27\x1e\x24\x29\x30\x2c\x2b\x33\x2e\x04\xa0\x3a\x26\x23\x25\x1a\x50\x2d\x1f\x51\x30\x00\xb5\x3b\x00\xb3\x3b\x2b\x23\x28\x03\xa0\x39\x11\x6e\x31\x05\x99\x38\x1d\x50\x2f\x00\xb4\x3c\x2d\x2a\x2c\x63\x63\x63\x2f\x2b\x2e\x63\xda\xc5\x2e\x00\x00\x01\x51\x49\x44\x41\x54\x38\xcb\x85\xcc\xd5\x76\xc2\x40\x14\x40\xd1\x0b\x24\x78\x25\x81\x00\x2d\x69\x53\xdc\xdd\x1d\xea\xee\xee\xee\xee\xee\xde\x9f\x6e\xf2\x3c\x0c\xec\xe7\xb3\x0e\xcc\x72\x46\x19\x96\x91\x6b\x03\x2e\xc9\xd6\x62\xb1\x49\x1b\xfc\xb2\x54\x2c\x18\x0c\xae\x8b\xca\xa1\x58\x37\xf4\xb2\xdd\xbb\xf9\xa1\xfc\xe6\xf6\xb2\x01\xa5\x67\x8d\xe0\xb6\x1c\x75\xbc\x5c\xbd\x3e\x5c\xc7\xca\x1d\x2c\x42\xb0\x31\x7a\xda\xd8\xd0\x7c\xff\x87\x09\x8c\xb9\x91\xa9\x26\x3e\xd8\xef\xd4\xa3\x98\x9c\x0c\x64\x8e\xc3\x67\x21\x98\xff\xa1\x50\x3a\x07\xc7\x07\x6f\x5b\x42\x70\x77\xc1\xa0\x68\x3e\xe0\xb2\xed\x5f\x42\x30\x37\xa8\x43\x69\xb2\x76\xb0\xa7\x76\x26\x84\x60\xe6\x9c\x46\x69\x53\x36\xb0\x15\x8e\x0f\xf8\xe0\x73\xa0\x47\x83\x22\x0a\x1e\xb0\xa5\x6f\x9f\x16\xa6\xbf\xdf\x2f\x97\xb4\x28\x49\xda\x03\x1e\x67\xdf\xf0\xca\xc7\xd8\xda\xe4\x19\x81\x22\x9d\xab\x10\x70\xb6\x3e\x86\x42\xa1\xae\xfe\xbd\xb2\x81\x0f\x02\xa5\x9b\x16\xc1\xb8\xa4\x8c\xc5\x12\x1f\x14\x55\x24\x96\xaa\xe8\x83\x13\x91\x5c\x85\x25\x17\x85\x21\xac\x57\xd6\x60\x29\xf5\x56\x08\x53\x0a\x39\x96\x82\xb2\x82\x95\x51\x2b\xb1\xd4\x8c\x15\x22\x3a\x50\x60\x81\x2e\x02\x7e\x3a\xa1\xc6\x4a\xd0\x7e\x30\xd1\x62\xc0\x12\x0b\x81\xa6\x52\xa0\x31\x55\x09\xb4\x26\x70\x11\x66\x31\x96\x59\xeb\xaa\x16\x78\xf9\x20\x5e\x87\x15\x27\xbc\xe0\x25\xa3\xf5\x58\x51\x52\x0a\x19\x03\x29\xc1\x22\x0d\x19\xb0\x4b\x2b\xb2\xff\x03\x80\x64\x51\xf1\x29\x1a\xc2\x9c\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\x01\x00\x00\xff\xff\xb0\xaa\xd3\x73\x5f\x03\x00\x00")
2015-08-30 07:27:40 +00:00
func staticFaviconPngBytes() ([]byte, error) {
return bindataRead(
_staticFaviconPng,
"static/favicon.png",
)
}
func staticFaviconPng() (*asset, error) {
bytes, err := staticFaviconPngBytes()
if err != nil {
return nil, err
}
2017-02-25 22:37:07 +00:00
info := bindataFileInfo{name: "static/favicon.png", size: 863, mode: os.FileMode(436), modTime: time.Unix(1502261670, 0)}
2015-08-30 07:27:40 +00:00
a := &asset{bytes: bytes, info: info}
return a, nil
}
2017-02-25 22:37:07 +00:00
var _staticIndexHtml = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x91\x41\x6f\x84\x20\x10\x85\xef\xfd\x15\x53\x9a\xde\x1a\xb1\x57\x45\xff\x4a\xc3\xca\xac\x8c\x8b\x60\x60\xd6\xd6\x18\xff\x7b\xc3\x52\x4f\x6d\xd2\x13\xc3\xbc\x2f\x8f\xf7\x82\x7a\x36\x61\xe0\x6d\x41\xb0\x3c\xbb\xfe\x49\x95\x03\x40\x59\xd4\x26\x0f\x00\x8a\x89\x1d\xf6\xfb\x0e\xd5\x63\x82\xe3\x50\xb2\xec\x8a\x9e\x78\x73\xd8\x5f\x82\xd9\xde\xe0\x85\x31\xce\xe4\xb5\x83\x7d\x09\x89\x98\x82\x6f\x40\x5f\x52\x70\x77\xc6\x16\x2c\xd2\x68\xb9\x81\xf7\xba\x7e\x6d\xe1\x93\x0c\xdb\xf3\x32\xeb\x38\x92\x6f\xa0\x5e\xbe\xda\x43\xc9\x62\x5a\x1e\x70\xe4\x6f\x10\xd1\x75\x82\x86\xe0\x05\xe4\xc0\x9d\xa0\x59\x8f\x28\x17\x3f\x0a\xb0\x11\xaf\x9d\xb8\xea\x35\xeb\x55\x5e\x3d\x3a\xc8\xb3\x84\xca\xe1\x7e\xcc\x0c\xad\x40\xa6\x13\x67\x50\xd1\x2b\x69\x68\x3d\xbb\x0c\x91\x16\x86\x14\x87\x4e\x54\x72\x4a\xd2\x66\xae\x9a\x52\xc6\x8a\xf8\x27\xa9\xef\x6c\x3f\x38\xdc\xd0\xff\xcf\x4e\x49\x8e\x81\x79\xfb\x45\x2a\x59\x72\x2a\x59\xbe\xe1\x3b\x00\x00\xff\xff\x24\xa8\xee\x8d\x9e\x01\x00\x00")
2015-08-16 09:47:23 +00:00
func staticIndexHtmlBytes() ([]byte, error) {
2015-08-16 09:47:23 +00:00
return bindataRead(
_staticIndexHtml,
"static/index.html",
2015-08-16 09:47:23 +00:00
)
}
func staticIndexHtml() (*asset, error) {
bytes, err := staticIndexHtmlBytes()
2015-08-16 09:47:23 +00:00
if err != nil {
return nil, err
}
2017-02-25 22:37:07 +00:00
info := bindataFileInfo{name: "static/index.html", size: 414, mode: os.FileMode(436), modTime: time.Unix(1502262173, 0)}
2015-08-23 11:40:18 +00:00
a := &asset{bytes: bytes, info: info}
return a, nil
}
2017-02-25 22:37:07 +00:00
var _staticJsGottyJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x56\x5f\x8f\xdb\x36\x0c\x7f\xbf\x4f\x41\xe8\x25\xf2\xe2\xfa\x92\xde\x06\x0c\x09\xb2\xa1\x2b\x6e\x40\x57\x6c\x57\x34\xd9\xee\xe1\x70\x28\x14\x9b\xb1\xb5\x28\x52\x20\xd1\x67\x78\x45\xbe\xfb\x20\x3b\x7f\x1c\xc7\x6e\x7a\x7a\x48\x6c\x91\x3f\xf2\x47\xd2\xa4\xc4\x57\xb9\x8e\x49\x1a\xcd\x03\xf8\x7a\x03\x00\xf0\x22\x2c\x64\x44\x5b\x77\xaf\xc5\x52\x61\x02\x33\x28\xa4\x4e\x4c\x11\x29\x13\x0b\xaf\x1a\x6d\xad\x21\x13\x1b\x05\xb3\x19\xb0\x4a\x77\xc2\xa6\x47\xb0\xb0\xa9\xeb\x00\x39\x14\x36\xce\x4e\x6a\xb9\x55\x30\x03\x7e\xe6\xea\x57\x18\x14\xce\x4d\x6e\x6f\x07\x30\xf1\x8f\xfe\x29\x80\xe1\x85\xad\xcc\x38\xea\xd8\xde\x0a\xca\xb4\xd8\x20\x0c\x3d\x78\x70\xf2\x75\x20\xec\x79\x3d\xb1\x02\x97\x44\x25\x7b\x6e\x50\xce\xc9\x7c\xc6\xd8\x68\x8d\x31\xc1\x0c\xde\x8c\xa7\x37\x47\xa1\xd9\xa2\x7e\xf4\xc8\x8b\x54\x1d\x34\x0a\x2f\xd5\x58\xc0\x23\x2e\xe7\x26\x5e\x23\xf1\xdc\xaa\xf0\xe4\x36\xd8\x9b\x3b\x00\x08\xed\xa6\xb5\xb5\x95\x3a\x5d\xc8\x0d\xda\xc6\x7e\xe1\x22\xa3\xbd\xfb\xa6\x73\x7c\x41\x4d\x4d\x06\x7b\x4d\x87\x3a\xe1\x7f\xcc\x1f\xfe\x8a\x1c\x59\xa9\x53\xb9\x2a\xf9\x57\x78\x67\xd3\x7c\x83\x9a\xdc\xa4\xaa\x4b\x08\xef\x72\xca\x16\x66\x8d\x7a\x02\xa9\x21\x2a\xbf\x88\x9c\xb2\x2f\xe4\x77\xc2\x5d\x10\x4c\xcf\xcc\x1e\x49\xc1\x0c\x1c\xd2\x07\x4d\x68\x5f\x84\xe2\xde\xd7\x27\xa9\xd3\x10\xee\x46\xf0\x03\x8c\x47\xa3\x51\x08\xc5\x59\x98\x7e\x65\x3e\xce\x28\xc1\x95\xc8\x15\xcd\xc9\x58\x91\xe2\x3e\x53\x4a\x2e\xa3\xfd\x4e\xf4\x27\x6e\x8c\x2d\x79\x1b\xed\xc1\x7b\xed\xda\xd0\x02\xed\x46\x6a\xa1\x3a\x35\xa3\x14\xe9\x93\xc5\x95\xe3\x41\xe4\x90\x38\xf3\x1c\xdf\xa0\x8e\x4d\x22\x75\xca\x42\x60\x56\x14\xac\x13\x69\xf4\xc1\xf2\x67\x14\x49\xd9\x57\xe9\x66\xb5\xa4\x81\x59\x0d\x96\x26\xda\xe6\x2e\xbb\xe0\xe4\x97\x34\x91\xd1\xff\x2c\x3e\x62\xe9\xc8\x9a\x35\x36\x2d\x3b\xb2\x5d\xc6\x9b\xc5\x64\x63\x06\x43\xf0\x8a\xd3\x0b\xbd\x5d\xb7\x3b\x8f\x9b\x57\xe5\x87\xd9\x85\xfb\x3e\x86\xa7\xe8\x9d\xfc\xef\x8c\x64\x6c\x54\xbe\xd1\x2e\x04\x6b\x0a\x77\x8d\x6e\xa7\xd0\x2f\x76\xe7\xe3\x68\x7d\x9a\xbd\xda\x7e\x75\x3b\x6a\xae\x3d\xb3\xc9\xe1\x21\xbc\x8a\xf0\x21\x4c\xaa\xdf\x6f\xeb\xee\x7a\xa5\x41\xa7\xe4\x72\xb7\xab\x36\xf5\xb7\xa2\x1d\x09\xa5\x3e\x62\xb9\x34\xc2\x26\xbc\x55\xd7\x36\x6e\xdf\x3d\xb1\xb1\x82\x90\x27\x26\xae\x3a\xd9\x7f\xe8\xf7\x0a\xfd\xe3\x6f\xe5\x87\x84\x33\xda\x97\x8f\x35\xbb\x77\xd7\x1e\x23\x1b\x74\xae\x6e\xbf\x6f\x4f\x92\x44\x90\x80\x19\x54\xb2\xc8\xbf\x44\x4e\xc9\x18\xf9\xb8\x45\xd6\x15\x92\xe2\x8c\x9f\xf4\x9e\x46\xcf\x6d\x5b\xb1\x70\x08\x83\xf1\x60\xd2\x93\x0e\x13\x15\x56\x12\xfe\xbd\xf8\xfd\x67\xbe\x9f\xe5\x82\xcc\x92\x7b\x73\xed\x51\xe4\xd7\xd2\xa2\x58\x4f\x3b\x5c\xbc\xed\x70\x71\x7b\x0b\x5b\xa3\xd3\xef\x37\x72\xd7\xc7\xd3\x21\x3d\x56\xec\x16\x92\x14\xd6\xec\x5e\x41\xee\xc7\x0e\xbb\x5b\x8b\x2b\xb4\xa8\x63\xf4\x47\x47\xd5\x1a\x5b\x61\x5d\xaf\xf1\x87\xe5\xbf\x18\x53\xb4\xc6\xd2\xf1\x06\x36\x88\x56\xc6\xde\x8b\x38\x3b\x1d\xe3\x6b\x2c\xfb\x1a\x35\x36\xda\x19\x85\x91\x32\x29\x67\x73\x24\xf2\x63\xc2\xb7\xe6\x1a\x4b\x18\x02\x9b\x54\x2f\x4d\x6e\x4f\x6b\x2c\x9f\x3b\xe8\x40\xcf\xd0\x5d\x63\x19\x7e\x0f\x7e\xf7\x9a\xfc\xfd\xd4\x91\xbf\xf6\x81\x7d\x3d\x83\x67\xc1\x57\xf7\x0d\x1f\xbd\x3d\xd8\xa8\x63\x3f\x37\x3b\x04\x06\xce\xbf\x25\x8e\x5d\x76\x79\x07\xdf\x5d\x7f\xfb\xc5\xca\xb8\xeb\xcd\x27\x57\xc0\x7d\x5e\xbb\x2a\x58\xe5\x3b\xd7\x57\x66\x08\x34\x9a\xcb\x65\xa6\x78\x78\x41\xab\x44\xc9\xd9\xfb\x3a\x28\x69\x34\xbc\xf7\x5c\x12\x16\x82\xce\x95\x6a\xcf\xa0\xf3\x02\x28\x14\xf6\x78\xea\x1f\x6f\x03\x2d\x8c\x67\x7d\x9e\xb9\x5f\x60\xd4\x15\x82\x43\xf2\x78\x93\x13\xaf\x2f\x55\x61\x2b\xe3\xf5\x55\xa2\x97\xd2\xae\x16\xec\x6e\x4e\x97\xb3\xc3\x4d\xa4\x99\xda\xf3\xa3\xea\x78\x9a\xbe\x65\xc1\x11\xef\xff\x6a\x0a\x3e\x81\xbb\x80\x07\x37\xff\x07\x00\x00\xff\xff\x14\x81\x47\xc3\x0a\x0b\x00\x00")
2015-08-23 11:40:18 +00:00
func staticJsGottyJsBytes() ([]byte, error) {
2015-08-23 11:40:18 +00:00
return bindataRead(
_staticJsGottyJs,
"static/js/gotty.js",
2015-08-23 11:40:18 +00:00
)
}
func staticJsGottyJs() (*asset, error) {
bytes, err := staticJsGottyJsBytes()
2015-08-23 11:40:18 +00:00
if err != nil {
return nil, err
}
2017-02-25 22:37:07 +00:00
info := bindataFileInfo{name: "static/js/gotty.js", size: 2826, mode: os.FileMode(436), modTime: time.Unix(1502428894, 0)}
2015-08-20 07:45:06 +00:00
a := &asset{bytes: bytes, info: info}
2015-08-16 09:47:23 +00:00
return a, nil
}
2017-02-25 22:37:07 +00:00
var _staticJsHtermJs = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\xfd\x7b\xdb\x36\x92\x38\xfe\x7b\xfe\x0a\xd4\xdb\xab\xa4\x44\x96\x25\xf9\xdd\xa9\xdb\x53\xe3\xb8\x97\x7b\xd2\xb4\xdf\x24\xdd\xbd\x7b\x1c\x6f\x0e\x22\x21\x89\x35\x45\x6a\x01\xca\xb6\xda\x7a\xff\xf6\xef\x33\x33\x78\x27\x25\xb9\xed\xee\xdd\xee\x7e\x1a\xd7\xaa\x4c\x0e\xc1\xc1\x60\xde\x31\x00\xf6\xf6\xd8\xfb\x59\xa6\xd8\x24\xcb\x05\xbb\xe3\x8a\x4d\x45\x21\x24\xaf\x44\xca\xc6\x2b\x96\x67\xe3\xb4\xac\xf6\xc6\x59\xb1\x97\x94\x45\xc2\xab\x9e\x9a\xf5\x9e\xec\xed\xb1\x57\x15\x9b\x71\xc5\xc6\x42\x14\x6c\xce\xe5\x8d\x48\x99\x14\x3c\xdd\x2d\x8b\x7c\xc5\x26\xa5\x64\xab\x72\x29\x99\xe2\x13\x51\xad\x7a\x8c\xbd\xe5\xd5\x4c\x48\x78\xb0\x9a\xf1\x82\x89\x34\xab\x58\x56\xb1\x34\x93\x22\xa9\xf2\x55\x97\x2d\x72\xc1\x95\x60\xf3\x32\xcd\x26\x2b\x56\x16\x82\x95\x13\x56\xcd\x84\x12\x4c\x95\x4b\x99\x08\x78\x16\x70\x54\xbd\x1e\x20\x00\x7f\x6a\xe4\x7e\x50\x7b\x79\x36\xee\xfd\xa0\x6a\xd7\x3e\x26\x65\x5e\x4a\xd5\x78\x6b\xd2\x78\x75\x2e\x94\xe2\x53\xf1\x71\xce\x0b\x3e\x15\xb2\x11\x66\x21\xc5\x44\x48\x51\x24\x9b\xc1\xa4\x20\xc4\x1b\x6f\xaa\xaa\x94\x7c\xba\xf1\xde\xc7\x64\x26\xcb\xf9\x66\x90\xbc\x4c\x78\xbe\x11\x62\x2e\xe6\xa5\x5c\x35\x82\x54\x42\x55\x1b\x7b\xb0\xac\x26\x27\x8d\x37\xee\x12\x7d\x79\x56\x09\x39\x87\xab\xf8\xa5\xf1\xe2\xc7\x89\xe4\xb6\x17\xd1\xad\x1b\xb1\x1a\x97\x5c\xa6\x9b\xef\x7e\x1c\x67\x45\x9a\x15\x53\xb5\x05\xec\x46\xac\xe6\x7c\xb1\x1d\x68\xc1\xab\x4a\xc8\xa2\x19\xb0\x5c\x54\x59\x59\xac\x79\xd5\x82\x4b\x65\x69\xd5\x78\xef\x63\x96\x8a\xa2\xca\x26\x99\x90\xeb\xda\x58\xc7\x3d\x31\xdc\x72\xac\x96\xe3\xe6\x7b\x2a\x91\x42\xac\xe9\x80\x4a\x64\x99\xe7\x8b\x52\x56\xcd\xf7\xe1\x23\x2b\x2c\xd7\xac\xb9\xfb\x31\x2b\xd7\x01\xdc\x57\x1f\x79\x55\xc9\x6c\xbc\xac\xc4\x9a\x3e\xde\xae\x79\xf7\x6d\xf5\x31\x99\x71\xc9\x93\x4a\xc8\x8f\x76\xac\x9e\x00\xe4\xbb\x6f\xbf\x7f\xfb\xe2\x25\xbb\x7c\xf5\xfa\xe5\x59\xa3\x60\xbf\x28\x17\x2b\x99\x4d\x67\x15\x6b\x27\x1d\x36\xec\x0f\x86\xec\xfd\x4c\xb0\x17\x20\x24\xd9\x72\xce\xbe\x7d\xc7\x46\xcb\x6a\x06\xe2\xce\x46\x79\xce\x10\x56\x31\x29\x94\x90\xb7\x22\x45\xa5\xf5\xbd\xd2\x6a\x25\x53\x5a\xab\xb0\xa4\x4c\x05\xcb\x14\x9b\x96\xb7\x42\x16\xa4\xf4\x38\xfb\xea\xdd\xc5\xae\xaa\x56\xb9\x60\x79\x96\x88\x42\x09\x50\x5b\x15\x4b\x78\xc1\xc6\xa4\x89\xca\x65\x91\xb2\xac\x00\x15\xc5\x5e\xbf\x7a\xf1\xf2\xcd\xbb\x97\xa8\x9e\x7a\x4f\x9e\xb4\x96\xa0\xb4\x2a\x99\x25\x55\xeb\xf9\x93\x27\xd9\x84\xb5\xab\xd5\x42\x94\x13\xe8\x17\xfb\xe4\x9c\xb5\x96\x45\x2a\x26\x59\x21\xd2\x56\xe7\x09\x63\xd5\x4c\x96\x77\xac\x10\x77\xec\xa5\x94\xa5\x6c\xb7\xbe\xce\xcb\x31\xcf\xd9\x4e\x9e\x8d\x77\x58\x39\xfe\x41\x24\x15\xe3\x39\xa8\xd7\x15\x13\xf7\x99\xaa\x54\xaf\xd5\x79\xfe\xe4\xc9\x2d\x97\xd8\xe4\x39\xfb\xe9\xe1\xf9\x93\x27\x7b\x4f\x9f\x3e\x61\x4f\xd9\x37\x7c\x01\x9d\xdc\x49\xc5\x42\x14\xa9\x28\x92\xd5\x0e\xab\x4a\x76\xb5\x43\x3d\xde\xe9\xb2\x5e\xaf\x77\xdd\x7b\xc2\x10\xfa\x25\x4f\x66\xcc\x81\x02\x29\xb8\x79\x67\xc1\xe7\xa2\xcb\xf2\xec\x46\x20\x2e\xbd\x89\xda\xe9\x32\xd3\x0c\x40\x42\xe7\x97\x32\x47\xe2\x40\x63\xa9\x58\xa4\xa2\x48\x15\x2b\x89\x30\xd4\x0e\xbc\x6a\xef\x09\x34\x20\x97\x45\x95\xcd\xc5\x85\x79\x5d\x26\xd4\xc7\x08\xfb\xd7\x99\xaa\x00\xfd\xc9\xb2\x48\x50\x12\x89\xf2\x85\x10\x29\xf4\x62\x2c\x58\x56\xdc\x96\x60\x6e\xd2\xa5\xcc\x8a\x29\x10\x40\x72\xb9\x62\x59\x91\x55\x19\xcf\xb3\x1f\x39\x3c\x16\x74\x4f\xe4\x62\x2e\x8a\xca\x0c\x17\x40\xbe\xe0\x79\x3e\xe6\xc9\x8d\xfa\xc8\xb8\x94\x1c\xfb\x9d\x55\x4a\xe4\x13\xc6\x59\x75\x57\xee\x9a\x67\xf0\x6e\x0f\x9b\xd2\x57\xfa\x44\x23\x35\x2b\x65\x85\xc3\x5c\x4c\x59\x2a\x54\x22\xb3\x31\x7c\xc5\x7e\xdf\x15\x42\x6a\x03\x86\xaf\x63\xb2\x5c\x56\x59\x21\xba\x6c\xa9\xc4\x64\x99\x43\x7b\x60\x24\x53\x31\x5e\x4e\xa7\x59\x31\xed\x31\xdb\xfe\xc0\x50\x36\xd1\x38\x5a\x5a\x38\x42\x46\x5d\x38\x67\x57\xd7\x8e\x84\x6f\x45\x52\xca\x14\x70\xd4\xf4\xf6\xc6\xd7\xd0\x05\x4d\x3e\xb1\xb3\x46\x89\xdd\xcd\x44\x01\x56\x9b\xdd\xf1\xa2\x02\x5a\x8b\xfb\x85\x14\x4a\xb7\xb3\x1b\x35\xc4\x68\xc4\x93\x72\xbe\x00\xc7\x01\xee\xf6\x18\x78\x05\x99\x62\x45\x09\xb4\xae\x00\xd2\x0c\x1a\x67\x93\x65\x9e\xef\x4e\x72\x91\x4e\x45\x6a\x07\x4d\xad\x54\x25\xe6\xac\x94\x9a\x7b\x4c\xe3\x95\xe4\xc9
2015-08-16 09:47:23 +00:00
func staticJsHtermJsBytes() ([]byte, error) {
2015-08-16 09:47:23 +00:00
return bindataRead(
_staticJsHtermJs,
"static/js/hterm.js",
2015-08-16 09:47:23 +00:00
)
}
func staticJsHtermJs() (*asset, error) {
bytes, err := staticJsHtermJsBytes()
2015-08-16 09:47:23 +00:00
if err != nil {
return nil, err
}
info := bindataFileInfo{name: "static/js/hterm.js", size: 522491, mode: os.FileMode(292), modTime: time.Unix(1460531118, 0)}
2015-08-20 07:45:06 +00:00
a := &asset{bytes: bytes, info: info}
2015-08-16 09:47:23 +00:00
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)
2015-08-20 07:45:06 +00:00
if err != nil {
2015-08-16 09:47:23 +00:00
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){
2015-08-30 07:27:40 +00:00
"static/favicon.png": staticFaviconPng,
"static/index.html": staticIndexHtml,
"static/js/gotty.js": staticJsGottyJs,
"static/js/hterm.js": staticJsHtermJs,
2015-08-16 09:47:23 +00:00
}
// 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 {
2015-08-20 07:45:06 +00:00
Func func() (*asset, error)
2015-08-16 09:47:23 +00:00
Children map[string]*bintree
}
2015-08-20 07:45:06 +00:00
2015-08-16 09:47:23 +00:00
var _bintree = &bintree{nil, map[string]*bintree{
"static": &bintree{nil, map[string]*bintree{
2015-08-30 07:27:40 +00:00
"favicon.png": &bintree{staticFaviconPng, map[string]*bintree{}},
"index.html": &bintree{staticIndexHtml, map[string]*bintree{}},
"js": &bintree{nil, map[string]*bintree{
"gotty.js": &bintree{staticJsGottyJs, map[string]*bintree{}},
"hterm.js": &bintree{staticJsHtermJs, map[string]*bintree{}},
}},
2015-08-16 09:47:23 +00:00
}},
}}
// RestoreAsset restores an asset under the given directory
func RestoreAsset(dir, name string) error {
2015-08-20 07:45:06 +00:00
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
2015-08-16 09:47:23 +00:00
}
// RestoreAssets restores an asset under the given directory recursively
func RestoreAssets(dir, name string) error {
2015-08-20 07:45:06 +00:00
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
2015-08-16 09:47:23 +00:00
}
func _filePath(dir, name string) string {
2015-08-20 07:45:06 +00:00
cannonicalName := strings.Replace(name, "\\", "/", -1)
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
2015-08-16 09:47:23 +00:00
}