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