2020-09-16 15:06:19 +00:00
|
|
|
// Code generated by go-bindata.
|
|
|
|
// sources:
|
|
|
|
// command/assets/connect-short.nomad
|
|
|
|
// command/assets/connect.nomad
|
|
|
|
// command/assets/example-short.nomad
|
|
|
|
// command/assets/example.nomad
|
|
|
|
// DO NOT EDIT!
|
|
|
|
|
2019-08-14 14:23:33 +00:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
2020-09-16 15:06:19 +00:00
|
|
|
"github.com/elazarl/go-bindata-assetfs"
|
2019-08-14 14:23:33 +00:00
|
|
|
"bytes"
|
|
|
|
"compress/gzip"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
2020-09-16 15:06:19 +00:00
|
|
|
"io/ioutil"
|
|
|
|
"os"
|
|
|
|
"path/filepath"
|
2019-08-14 14:23:33 +00:00
|
|
|
"strings"
|
2020-09-16 15:06:19 +00:00
|
|
|
"time"
|
2019-08-14 14:23:33 +00:00
|
|
|
)
|
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
func bindataRead(data []byte, name string) ([]byte, error) {
|
2019-08-14 14:23:33 +00:00
|
|
|
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)
|
2020-09-16 15:06:19 +00:00
|
|
|
clErr := gz.Close()
|
2019-08-14 14:23:33 +00:00
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
|
|
|
}
|
2020-09-16 15:06:19 +00:00
|
|
|
if clErr != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-08-14 14:23:33 +00:00
|
|
|
|
|
|
|
return buf.Bytes(), nil
|
|
|
|
}
|
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
type asset struct {
|
|
|
|
bytes []byte
|
|
|
|
info os.FileInfo
|
|
|
|
}
|
|
|
|
|
|
|
|
type bindataFileInfo struct {
|
|
|
|
name string
|
|
|
|
size int64
|
|
|
|
mode os.FileMode
|
|
|
|
modTime time.Time
|
|
|
|
}
|
2019-08-14 14:23:33 +00:00
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-06-08 19:06:00 +00:00
|
|
|
var _commandAssetsConnectShortNomad = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x52\xc1\x6e\xdb\x30\x0c\xbd\xfb\x2b\x08\x61\xd7\x21\x6e\x77\x69\x0b\xf8\x10\x34\xc1\x50\x60\x4d\x87\xb4\xd9\x65\x18\x04\x5a\x62\x62\x2d\xb1\x24\x48\xb4\xbb\xa1\xf0\xbf\x0f\xf6\x3c\xd5\x6d\xb7\x22\xdb\x74\xb1\xf5\x48\x8a\x8f\x8f\xef\xab\x2b\x41\x28\xd7\x58\xd6\x18\x2b\x01\x0f\x19\x80\x46\x46\x45\x96\x29\x44\x28\xe0\xb3\xd0\xea\x44\x7c\xc9\x32\x80\x5d\x70\x8d\x07\x81\xde\xfc\x4c\x04\xb0\xc4\xf7\x2e\xec\xc7\x1b\x40\xed\x34\x41\x01\xa2\x0c\x46\xef\x48\x0c\x68\x97\x0d\x9f\x48\xa1\x35\x8a\x52\xaa\xc5\x7a\x48\x1d\x9a\xbf\xed\xdf\x1c\x03\xde\x05\xee\x03\xe7\x79\x7e\x22\xb2\x11\x54\xce\x5a\x52\x9c\xaa\x01\xa2\xd1\xa4\x30\xc8\xf4\x6e\x37\x86\xba\x69\x57\xc6\xb8\x07\x71\x4f\xa5\x48\xa5\x3a\x98\x96\x42\xdf\x41\x3b\xb5\xa7\x30\xed\xb1\x35\xbb\x49\x0b\x53\xe3\x8e\x20\x9d\x02\x44\x85\xb1\x32\xca\x05\xaf\xa9\x9d\x0d\xcc\x29\xf4\xdc\x2f\xda\x77\x22\x95\x61\xc3\x95\x8c\x6e\xcb\x72\x8b\xe6\x00\x05\x70\x68\xe8\x19\xb9\x91\xe0\xa8\x68\xaf\x7d\xe9\x30\xe8\x63\x75\x9d\x4a\x25\x2a\x66\x2f\xa6\xca\x30\xb2\x51\x50\xc0\x79\x9e\x9f\x26\x94\xdd\x38\xc4\x04\xed\x8e\x5f\xd0\x23\xc5\x97\x6b\x3a\xfd\x9b\x35\x65\x8f\x82\xfa\xe0\xbe\x7d\x7f\x82\x00\x34\x3e\x72\x20\xac\xe3\x33\x1c\x40\x53\x64\x63\x91\x8d\xb3\xf2\x8f\xe6\xf9\x75\x0e\x4e\xe1\x41\x96\xc6\x6a\x39\x10\x85\x02\xce\xf2\xb3\xfc\x49\x56\x97\xfd\xee\xff\x15\x1b\xbd\x58\xd3\x2b\x66\x22\xdb\x4e\x26\xb8\xbc\xd9\xac\xee\xae\x56\xef\xe5\xed\x72\xfd\xe9\xea\x72\x29\x37\xeb\x0f\x83\x9f\x98\xfd\xc5\x6c\xf6\xe6\x61\x75\x73\x3d\x5f\xc8\xcd\xc7\xdb\xbb\xf5\x72\x7e\x2d\xe7\x8b\xc5\x5a\x0e\xc3\x49\xf4\xa6\x13\x89\xd3\x7f\x5a\x35\x4d\xf0\x4f\x86\xed\xb2\x1f\x01\x00\x00\xff\xff\x86\xf2\xc5\x22\x2f\x04\x00\x00")
|
2020-09-16 15:06:19 +00:00
|
|
|
|
|
|
|
func commandAssetsConnectShortNomadBytes() ([]byte, error) {
|
|
|
|
return bindataRead(
|
|
|
|
_commandAssetsConnectShortNomad,
|
2019-08-26 17:24:59 +00:00
|
|
|
"command/assets/connect-short.nomad",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
func commandAssetsConnectShortNomad() (*asset, error) {
|
|
|
|
bytes, err := commandAssetsConnectShortNomadBytes()
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2019-08-26 17:24:59 +00:00
|
|
|
|
2022-06-07 14:18:19 +00:00
|
|
|
info := bindataFileInfo{name: "command/assets/connect-short.nomad", size: 1071, mode: os.FileMode(436), modTime: time.Unix(1656778128, 0)}
|
2020-09-16 15:06:19 +00:00
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
|
|
}
|
|
|
|
|
2022-06-08 19:06:00 +00:00
|
|
|
var _commandAssetsConnectNomad = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x7b\x6d\x8f\x1c\xb7\x91\xff\xfb\xfd\x14\x85\xde\x00\x49\xfe\xd8\x9d\x7d\x90\x95\xd8\xc2\x7f\x0f\x90\x2d\xe7\x4e\x77\xb1\x7c\x90\xe4\xcb\x8b\xc0\x58\x71\xba\x6b\x66\xa8\xed\x26\xdb\x24\x7b\x46\x6b\x63\xbf\xfb\xa1\x8a\x45\x36\xbb\x67\x66\x2d\xcb\x87\x28\x01\x24\x79\x48\x16\x8b\xf5\xf8\xab\x22\xfb\x14\xde\x6e\xd0\x21\xd4\xca\x80\x35\xed\x3d\x2c\x11\x14\x78\x6d\xd6\x2d\xc2\x7b\xbb\x84\x06\x57\xda\xe8\xa0\xad\x81\x1e\x1d\xac\x74\x8b\x0b\x78\xbb\xd1\x9e\x47\xb5\x07\xa3\x3a\x6c\x4e\x4e\xa1\xaa\xed\x60\x42\xa3\xfc\xa6\x02\x6f\x41\x07\xd8\xe9\xb6\x85\xda\xa1\x0a\x44\x93\xa6\xef\x74\xd8\x40\xd8\x20\xbc\x7c\x01\xca\x34\xf0\x4a\x75\x58\x2e\x5c\x9c\x9c\x30\x43\x50\xbd\xb7\xcb\x0a\x7c\x50\xe6\x67\x45\x9b\xd0\x9a\x60\xfb\xf3\xce\xfa\x00\xb5\x35\x2b\xbd\x1e\x9c\x62\xae\x6c\xcf\x7f\x69\xc3\x93\xde\xdb\xe5\xc9\x29\xf8\x1e\x6b\xbd\xd2\x35\xcf\x58\xc0\xf3\xc4\xab\x82\x06\xeb\x56\xd1\xca\x2d\x4e\x67\x81\x5d\x41\x50\xfe\x8e\xf6\x52\x01\x5e\xd9\x4e\xd1\xa9\xfc\xc6\x0e\x6d\x03\x6e\x30\x0b\xf8\x4f\xbb\xf4\xb0\x51\x5b\x3a\xcd\xba\xb5\x4b\xd5\xb6\xf7\x30\x18\xfd\xd3\x80\x2c\x85\x33\xb0\x06\xc1\x3a\xe8\x94\xb9\x67\x62\xb0\x76\x76\xe8\xfd\x19\xec\x36\xba\xde\x9c\x9c\x82\x72\x48\x6c\x76\x1e\xdb\x2d\x7a\xa8\x6d\xdb\x62\x4d\xdb\x7b\xda\x7f\xbe\xdc\x2f\x4e\x4e\x4f\x4e\xe1\x6f\xf4\x9b\x75\x08\xda\xac\xac\xeb\x22\xbb\x24\x3e\xfc\xa0\xba\xbe\x45\x0f\x36\x1e\xbe\x94\xda\x19\xf4\x2d\x2a\x8f\xe0\x11\x4f\x4e\x79\xd8\x9a\x56\x1b\x84\xc6\xd6\x43\x87\x26\x08\x9d\xf0\x8c\x37\xa1\xff\x6d\x42\xe8\xfd\xb3\x8b\x8b\xdd\x6e\xb7\x30\x24\x80\xde\xd9\xf7\x58\x87\x85\xb6\x17\x8d\xad\xfd\xc5\x7b\xbb\x3c\x9f\x48\x8d\x7e\x59\x6c\x42\xd7\x9e\x9c\x9e\x90\x8c\x4b\x23\xf8\xe5\x04\x40\xb4\xe9\x70\xad\xad\xa9\xa0\x57\x4e\x75\x18\xd0\x25\xd9\x63\x54\x6d\x1c\x27\x1d\xb2\xa0\x20\x58\xc0\x0f\x58\x0f\x01\x93\x52\x17\xf0\x72\xc5\xf4\x6c\xa7\x43\xc0\xe6\x0c\x02\xd9\xa0\x36\x1b\x74\x3a\x44\x2a\x0d\xae\xd4\xd0\x86\x44\x8d\x54\x42\x52\xad\xa2\xae\xaa\x05\xaf\x97\xc1\x9b\xfc\x33\xfd\x3a\x72\xda\xa8\xa0\x6a\x34\x01\x9d\x3f\xce\x6e\xab\x7d\x20\xca\xc5\x64\x61\x3c\x9a\x0b\x93\x5b\x22\x19\xaa\xd7\x0d\x3a\x6c\x60\xb7\x41\x03\x7d\xab\x6a\x6d\xd6\x91\x75\x52\xb0\x78\x52\x37\xf8\x40\xf3\x7b\x67\xb7\xba\xc1\x86\x38\x2d\x69\xdf\xc0\x3f\xab\xa6\xbe\xaa\x7e\x3c\x19\x19\x0d\xf7\x3d\x96\x1c\xd6\xd6\x04\x67\x5b\x71\x95\xfb\x9e\x8f\xfe\xde\x2e\xc5\xf6\x40\x77\xbd\xaa\x45\x50\xbe\xde\x60\x33\xb4\xe8\xfe\xe8\x99\x60\x83\xb5\xf6\xec\x03\x91\x47\x24\xf3\x10\xde\xa6\xce\xa6\xbd\xf8\x9b\x6a\xd9\x02\x45\xe4\x1e\x82\x65\x4a\x95\x47\xb7\xd5\x35\x56\x0b\xb6\x5a\x05\xab\xa1\x6d\xb3\xbc\xc8\x42\x88\x35\xcf\x6b\xc3\x06\xb5\x83\x46\xaf\x56\xe8\xd0\xd4\xe8\x27\x26\x4b\xd4\x8e\x19\xed\x22\xeb\xec\x90\x6b\x94\x64\x1e\xb7\xfb\x44\xe5\x63\x6d\x9f\xac\xe0\x22\x0b\xcf\x47\xc3\x8f\x44\x58\xe2\x37\xe3\xf9\x0b\x4d\x91\x15\x04\xa7\xb4\x09\x39\xa2\x71\x50\x25\x31\x34\x8d\x16\x69\x8e\xb3\x3c\xac\xac\x9b\xda\x0a\xe9\x91\x09\x6a\x93\xd7\x90\x93\x50\xa0\x70\xe8\xed\xe0\x6a\x8e\x1c\x8d\xd3\xdb\x68\x0b\x89\x96\x68\x51\xf6\xed\x14\x07\x78\xd6\x71\xb4\x52\x15\xc6\xc8\x71\x06\x15\xc7\xab\xea\x8c\x68\x55\x64\xa0\x15\xb4\xb8\xc5\xf6\x8c\x15\xe6\x87\xbe\xb7\x2e\x78\xd8\x2a\xa7\xd5\xb2\x25\xa9\x07\x74\xbd\x6d\x3f\x42\x2b\x87\x03\xd6\xbe\x6c\x3e\xda\x08\x3e\x49\x83\xb3\xe8\x35\x6e\x5f\xea\xf2\xb4\x10\xa0\x44\x31\x00\x15\x82\xd3\x4b\x8a\x48\x37\x50\xfd\xe1\x17\xfa\xcf\xc5\x1d\x3a\x83\xed\x82\x02\xcd\x43\x25\xf3\xb6\xaa\x1d\x90\xf9\xb9\x81\xaa\xd5\x66\xf8\x10\x47\x1e\x0a\x8b\x18\xfa\x46\x05\xcc\xd6\x30\x0d\x2e\x71\x10\x68\xff\x80\xeb\xfb\x94\x97\x24\x95\x2c\x98\x42\x9c\xc3\x04\xf3\x3c\xed\x61\xf0\xd8\x90\x59\x48\x2c\x20\xdb\x31\x6b\x0f\xad\xbe\x43\x70\xb6\x6d\xc9\x9e\x86\x7e\xed\x54\x43\xce\x56\x2b\xa3\x9c\xa6\x7f\x29\x23\x21\xab\x1d\xf0\x62\xed\x10\x0d\x34\xd8\xb7\xf6\x9e\x84\xed\x29\xf4\x8e\x61\xd7\xd8\x3d\x0e\xb5\x07\x24\x45\xd7\xd8\x30\x7b\x31\x12\xcc\x0e\x39\x31\xbd\x64\x76\x14\x10\xac\x2b\xce\xb7\x80\x7f\xa4\x40\x99\x67\x31\x39\x8e\x64\x3a\x80\xea\xfb\x96\x25\x65\x41\xb5\xad\x08\x85\x71\xc5\x08\x00\xf6\x88\x2c\xad\xc0\x0e\xda\x2f\x1d\x96\x97\x26\xf3\xe6\xa8\x
|
2020-09-16 15:06:19 +00:00
|
|
|
|
|
|
|
func commandAssetsConnectNomadBytes() ([]byte, error) {
|
|
|
|
return bindataRead(
|
|
|
|
_commandAssetsConnectNomad,
|
2019-08-26 17:24:59 +00:00
|
|
|
"command/assets/connect.nomad",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
func commandAssetsConnectNomad() (*asset, error) {
|
|
|
|
bytes, err := commandAssetsConnectNomadBytes()
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2022-06-07 14:18:19 +00:00
|
|
|
info := bindataFileInfo{name: "command/assets/connect.nomad", size: 18126, mode: os.FileMode(436), modTime: time.Unix(1656778128, 0)}
|
2020-09-16 15:06:19 +00:00
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
|
|
}
|
|
|
|
|
2022-06-08 19:06:00 +00:00
|
|
|
var _commandAssetsExampleShortNomad = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x5c\x4f\xed\x6a\xc3\x30\x0c\xfc\xef\xa7\x38\xf4\x04\xdd\x46\x5b\x36\xf0\x93\x94\x52\x5c\x5b\x49\xbd\x34\x51\x90\xed\x7d\x30\xfa\xee\x23\xab\xf1\x42\x0d\xfe\xba\x3b\x9d\x4e\xef\x72\x06\xf1\x97\x1b\xe7\x2b\x13\x7e\x0c\x10\x5c\x76\x9e\xa7\xcc\x9a\x60\x71\xa0\xe0\x9f\xe8\x68\x0c\xd0\xab\x94\x19\xe4\x9d\xbf\x54\x29\x30\x71\xfe\x14\x1d\xea\x0f\x98\x45\x33\x28\x9c\xa9\x21\x40\x16\x58\xec\x5e\xf6\xaf\x15\xb9\x99\xfb\xf9\x77\x65\x97\x06\x90\x72\x88\xe9\xbf\x26\x68\xfc\x60\x85\x05\x05\xf1\x03\x2b\x99\x4a\x78\x99\xba\xd8\xaf\xbc\xe3\xe8\x7a\x46\x5b\xb6\x5a\xbd\xed\xa9\x49\x96\x48\x69\x2d\x39\x2c\xf9\x8e\x8d\x77\x25\x5f\x4e\x49\xba\x7c\xea\x5c\xbc\xc2\x22\x6b\xe1\x16\xb5\x3e\x94\x93\x14\xf5\x9c\x56\xbd\xfd\x5c\xee\x86\xdb\xcd\xa6\x81\x23\x8f\xa2\xdf\xb0\x78\xde\xee\x1e\xe6\x5d\xf6\xcd\xfc\x06\x00\x00\xff\xff\x46\x98\x1b\x9b\x71\x01\x00\x00")
|
2019-08-14 14:23:33 +00:00
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
func commandAssetsExampleShortNomadBytes() ([]byte, error) {
|
|
|
|
return bindataRead(
|
|
|
|
_commandAssetsExampleShortNomad,
|
2019-08-14 14:23:33 +00:00
|
|
|
"command/assets/example-short.nomad",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
func commandAssetsExampleShortNomad() (*asset, error) {
|
|
|
|
bytes, err := commandAssetsExampleShortNomadBytes()
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2022-06-07 14:18:19 +00:00
|
|
|
info := bindataFileInfo{name: "command/assets/example-short.nomad", size: 369, mode: os.FileMode(436), modTime: time.Unix(1656778128, 0)}
|
2020-09-16 15:06:19 +00:00
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
|
|
}
|
|
|
|
|
2022-06-08 19:06:00 +00:00
|
|
|
var _commandAssetsExampleNomad = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x5b\xdd\x8f\x1c\x37\x72\x7f\xdf\xbf\xa2\xd0\x1b\xe0\x12\x60\x77\xf6\x43\x5e\x2b\xa7\x60\x1e\x6c\x5f\x2e\x56\x12\x5f\x82\xd8\xc9\x21\x38\x1f\x16\x9c\xee\x9a\x69\x6a\xd8\x64\x9b\x64\xcf\x68\x24\xec\xff\x1e\x54\xf1\xa3\xd9\x3d\xb3\xab\xf5\x1a\xb9\xd5\xc3\x48\xea\x26\x8b\xc5\xfa\xfc\x55\x91\x7d\x0e\x3f\xb5\x68\x11\x6a\xa1\xc1\x68\x75\x80\x15\x82\x00\x27\xf5\x46\x21\x7c\x30\x2b\x68\x70\x2d\xb5\xf4\xd2\x68\xe8\xd1\xc2\x5a\x2a\x5c\xc0\x4f\xad\x74\xfc\x56\x3a\xd0\xa2\xc3\xe6\xec\x1c\x2a\xfc\x28\xba\x5e\x61\x05\xce\x80\xf4\xb0\x97\x4a\x41\x6d\x51\x78\xa2\x48\x83\xf7\xd2\xb7\xe0\x5b\x84\xf7\x7f\x00\xa1\x1b\xf8\x93\xe8\x70\x9c\xb6\x38\x3b\x63\x66\xa0\xfa\x60\x56\x15\x38\x2f\xf4\x27\x41\x0b\xd0\x0c\x6f\xfa\xcb\xce\x38\x0f\xb5\xd1\x6b\xb9\x19\xac\x60\x8e\x4c\xcf\x7f\x49\xcd\x83\x3e\x98\xd5\xd9\x39\xb8\x1e\x6b\xb9\x96\x35\x8f\x58\xc0\x37\x89\x4f\x01\x0d\xd6\x4a\xd0\xcc\x1d\x4e\x47\x81\x59\x83\x17\x6e\x4b\x6b\x09\x0f\x7f\x32\x9d\xa0\x1d\xb9\xd6\x0c\xaa\x01\x3b\xe8\x05\xfc\xab\x59\x39\x68\xc5\x8e\xf6\xb2\x51\x66\x25\x94\x3a\xc0\xa0\xe5\x2f\x03\xb2\x04\x2e\xc0\x68\x04\x63\xa1\x13\xfa\xc0\xc4\x60\x63\xcd\xd0\xbb\x0b\xd8\xb7\xb2\x6e\xcf\xce\x41\x58\x24\x36\x3b\x87\x6a\x87\x0e\x6a\xa3\x14\xd6\xb4\xbc\xa3\xf5\xe7\xd3\xdd\xe2\xec\xfc\xec\x1c\xfe\x48\xcf\x8c\x45\x90\x7a\x6d\x6c\x17\xd8\x25\xe1\x45\xb1\x39\x30\x61\xf3\xa5\xd4\x2e\xa0\x57\x28\x1c\x82\x43\x3c\x3b\xe7\xd7\x46\x2b\xa9\x11\x1a\x53\x0f\x1d\x6a\x1f\xe9\xf8\x77\xbc\x08\xfd\x69\xbd\xef\xdd\xbb\xab\xab\xfd\x7e\xbf\xd0\x24\x80\xde\x9a\x0f\x58\xfb\x85\x34\x57\x8d\xa9\xdd\xd5\x07\xb3\xba\x9c\x48\xed\x8a\xe5\x7d\x46\xe2\x1d\x75\xff\xf9\x0c\x20\xaa\xd1\xe2\x46\x1a\x5d\x41\x2f\xac\xe8\xd0\xa3\x4d\x42\xc7\xa0\xd3\xf0\x9e\x94\xc7\x12\x02\x6f\x00\x3f\x62\x3d\x78\x4c\xda\x5c\x30\xb1\xf7\x6b\x30\x9d\xf4\x1e\x9b\x0b\xf0\x64\x78\x52\xb7\x68\xa5\x0f\x54\x1a\x5c\x8b\x41\xf9\x44\x8d\x74\x41\xe2\xac\x82\x92\xaa\x40\x22\xbe\x5c\xe6\xc7\xf4\x74\xe4\xb4\x11\x5e\xd4\xa8\x3d\x5a\xf7\x38\xbb\x4a\x3a\x4f\x94\x8b\xc1\x91\xf1\x60\x27\x4c\x6e\x85\x64\xa1\x4e\x36\x68\xb1\x81\x7d\x8b\x1a\x7a\x25\x6a\xa9\x37\x81\x75\xd2\x6c\x74\x9f\x6e\x70\x9e\xc6\xf7\xd6\xec\x64\x83\x0d\x71\x5a\xd2\x5e\xc2\x5f\xaa\xa6\xbe\xa9\xfe\x7a\x36\x32\xea\x0f\x3d\x96\x1c\xd6\x46\x7b\x6b\x54\xf4\x91\x43\xcf\x5b\xff\x60\x56\xd1\xe8\x40\x76\xbd\xa8\xa3\xa0\x5c\xdd\x62\x33\x28\xb4\xbf\x73\x4c\xb0\xc1\x5a\x3a\x36\xfe\xc0\x23\x92\x5d\x44\xde\xa6\x5e\x26\x5d\x74\x34\xa1\xd8\xf4\xa2\xc8\x1d\x78\xc3\x94\x2a\x87\x76\x27\x6b\xac\x16\x6c\xae\x02\xd6\x83\x52\x59\x5e\x64\x1f\xc4\x9a\xe3\xb9\xbe\x45\x69\xa1\x91\xeb\x35\x5a\xd4\x35\xba\x89\xad\x12\xb5\xc7\xac\x75\x91\x75\x76\xca\x27\x4a\x32\x4f\x1b\x7c\xa2\xf2\x2c\xa3\xcf\x42\x73\x71\x1e\x0b\x79\x39\x6e\xb9\x50\x0e\x29\xde\x5b\x21\xb5\xcf\xd1\x8b\x83\x27\xed\xbc\x69\x64\x14\xe0\x38\xca\xc1\xda\xd8\xa9\x79\x90\xea\x98\xa0\xd4\x79\x0e\xf9\x05\x05\x05\x8b\xce\x0c\xb6\xe6\x28\xd1\x58\xb9\x0b\xea\x4f\xb4\xa2\xe2\xe2\xba\x9d\xe0\x40\xce\x6a\x0d\x86\x29\xfc\x18\x25\x2e\xa0\xe2\xd8\x54\x5d\x10\xad\x8a\x6c\xb2\x02\x85\x3b\x54\x17\xac\x23\x37\xf4\xbd\xb1\xde\xc1\x4e\x58\x29\x56\x8a\x04\xed\xd1\xf6\x46\x3d\x43\x11\xa7\x83\xd3\xb1\x6c\x9e\xad\xf7\x5f\xaf\xb4\xe3\x48\x35\x2e\x9f\x29\x8d\x8f\x62\xcc\x02\x10\xde\x5b\xb9\xa2\xf8\xb3\x84\xea\xef\x3e\xd3\x7f\x17\x5b\xb4\x1a\xd5\x82\xc2\xca\x43\x15\xc7\xed\x84\x1a\x90\x59\x59\x42\xa5\xa4\x1e\x3e\x86\x37\x0f\x85\x31\x0c\x7d\x23\x3c\x66\x43\x98\x86\x92\xf0\x12\x68\x7d\x8f\x9b\x43\x4a\x3f\x31\x63\x2c\x98\x42\x18\xc3\x04\xf3\x38\xe9\x60\x70\xd8\x90\x45\x44\xcf\x27\xb3\xd1\x1b\x07\x4a\x6e\x11\xac\x51\x8a\x4c\x69\xe8\x37\x56\x34\xe4\x5a\xb5\xd0\xc2\x4a\xfa\x97\xd0\x31\x40\xa9\x01\xaf\x36\x16\x51\x43\x83\xbd\x32\x07\x92\xb3\x5b\x4c\x82\xac\x36\x47\x1c\x4a\x07\x48\x3a\xae\xb1\x61\xf6\x82\xdf\xcf\x36\x39\xb1\xba\x64\x71\xe4\xfe\xc6\x16\xfb\x5b\xc0\x9f\x53\x58\xcc\xa3\x98\x1c\xc7\x2d\xe9\x41\xf4\xbd\x62\x49\x19\x10\x4a\x45\xa1\x30\x78\x18\xf3\xfc\x11\x91\x95\x89\xd8\x82\xd6\x4b\x9b\xe5\xa9\xc9\xb2\x39\x06\x32\xa3\x8e\x53\x71\x87\x76\x43\x31\x3a\x81\x12\x1e\xfc\x3b\x0a\xd1\x5b\x12\x62\x6f\xb1\xc6\x86\x
|
2019-08-14 14:23:33 +00:00
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
func commandAssetsExampleNomadBytes() ([]byte, error) {
|
|
|
|
return bindataRead(
|
|
|
|
_commandAssetsExampleNomad,
|
2019-08-14 14:23:33 +00:00
|
|
|
"command/assets/example.nomad",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
func commandAssetsExampleNomad() (*asset, error) {
|
|
|
|
bytes, err := commandAssetsExampleNomadBytes()
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2022-06-07 14:18:19 +00:00
|
|
|
info := bindataFileInfo{name: "command/assets/example.nomad", size: 16351, mode: os.FileMode(436), modTime: time.Unix(1656778128, 0)}
|
2020-09-16 15:06:19 +00:00
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
|
|
}
|
|
|
|
|
2019-08-14 14:23:33 +00:00
|
|
|
// 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 {
|
2020-09-16 15:06:19 +00:00
|
|
|
a, err := f()
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
|
|
|
|
}
|
|
|
|
return a.bytes, nil
|
2019-08-14 14:23:33 +00:00
|
|
|
}
|
|
|
|
return nil, fmt.Errorf("Asset %s not found", name)
|
|
|
|
}
|
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
// 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)
|
|
|
|
}
|
|
|
|
|
2019-08-14 14:23:33 +00:00
|
|
|
// 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.
|
2020-09-16 15:06:19 +00:00
|
|
|
var _bindata = map[string]func() (*asset, error){
|
|
|
|
"command/assets/connect-short.nomad": commandAssetsConnectShortNomad,
|
|
|
|
"command/assets/connect.nomad": commandAssetsConnectNomad,
|
|
|
|
"command/assets/example-short.nomad": commandAssetsExampleShortNomad,
|
|
|
|
"command/assets/example.nomad": commandAssetsExampleNomad,
|
2019-08-14 14:23:33 +00:00
|
|
|
}
|
2020-09-16 15:06:19 +00:00
|
|
|
|
2019-08-14 14:23:33 +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))
|
2020-09-16 15:06:19 +00:00
|
|
|
for childName := range node.Children {
|
|
|
|
rv = append(rv, childName)
|
2019-08-14 14:23:33 +00:00
|
|
|
}
|
|
|
|
return rv, nil
|
|
|
|
}
|
|
|
|
|
2020-09-16 15:06:19 +00:00
|
|
|
type bintree struct {
|
|
|
|
Func func() (*asset, error)
|
|
|
|
Children map[string]*bintree
|
|
|
|
}
|
|
|
|
var _bintree = &bintree{nil, map[string]*bintree{
|
|
|
|
"command": &bintree{nil, map[string]*bintree{
|
|
|
|
"assets": &bintree{nil, map[string]*bintree{
|
|
|
|
"connect-short.nomad": &bintree{commandAssetsConnectShortNomad, map[string]*bintree{}},
|
|
|
|
"connect.nomad": &bintree{commandAssetsConnectNomad, map[string]*bintree{}},
|
|
|
|
"example-short.nomad": &bintree{commandAssetsExampleShortNomad, map[string]*bintree{}},
|
|
|
|
"example.nomad": &bintree{commandAssetsExampleNomad, map[string]*bintree{}},
|
2019-08-14 14:23:33 +00:00
|
|
|
}},
|
|
|
|
}},
|
|
|
|
}}
|
2020-09-16 15:06:19 +00:00
|
|
|
|
|
|
|
// 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, "/")...)...)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func assetFS() *assetfs.AssetFS {
|
|
|
|
assetInfo := func(path string) (os.FileInfo, error) {
|
|
|
|
return os.Stat(path)
|
|
|
|
}
|
|
|
|
for k := range _bintree.Children {
|
|
|
|
return &assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, AssetInfo: assetInfo, Prefix: k}
|
|
|
|
}
|
|
|
|
panic("unreachable")
|
|
|
|
}
|