github.com/zhizhiboom/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/command/agent/bindata_assetfs.go (about) 1 // Code generated by go-bindata. 2 // sources: 3 // ui/dist/assets/nomad-ui-ad7b09549502674646af03f41d1d62f1.css 4 // ui/dist/assets/nomad-ui-d4e693a82d9bb50c3b64289ff72827ee.js 5 // ui/dist/assets/vendor-ba9b921906f8503d3378ceb83aece15b.js 6 // ui/dist/assets/vendor-d41d8cd98f00b204e9800998ecf8427e.css 7 // ui/dist/crossdomain.xml 8 // ui/dist/ember-fetch/fastboot-fetch-805e176077930c98aec5834ae48bd0f2.js 9 // ui/dist/favicon-1c2527a7a07d130ecbafce75e4615a69.png 10 // ui/dist/images/icons/clock.svg 11 // ui/dist/images/icons/history.svg 12 // ui/dist/images/icons/media-pause.svg 13 // ui/dist/images/icons/media-play.svg 14 // ui/dist/images/icons/warning.svg 15 // ui/dist/images/nomad-logo.svg 16 // ui/dist/index.html 17 // ui/dist/robots.txt 18 // DO NOT EDIT! 19 20 // +build ui 21 22 package agent 23 24 import ( 25 "bytes" 26 "compress/gzip" 27 "fmt" 28 "io" 29 "io/ioutil" 30 "os" 31 "path/filepath" 32 "strings" 33 "time" 34 35 "github.com/elazarl/go-bindata-assetfs" 36 ) 37 38 func bindataRead(data []byte, name string) ([]byte, error) { 39 gz, err := gzip.NewReader(bytes.NewBuffer(data)) 40 if err != nil { 41 return nil, fmt.Errorf("Read %q: %v", name, err) 42 } 43 44 var buf bytes.Buffer 45 _, err = io.Copy(&buf, gz) 46 clErr := gz.Close() 47 48 if err != nil { 49 return nil, fmt.Errorf("Read %q: %v", name, err) 50 } 51 if clErr != nil { 52 return nil, err 53 } 54 55 return buf.Bytes(), nil 56 } 57 58 type asset struct { 59 bytes []byte 60 info os.FileInfo 61 } 62 63 type bindataFileInfo struct { 64 name string 65 size int64 66 mode os.FileMode 67 modTime time.Time 68 } 69 70 func (fi bindataFileInfo) Name() string { 71 return fi.name 72 } 73 func (fi bindataFileInfo) Size() int64 { 74 return fi.size 75 } 76 func (fi bindataFileInfo) Mode() os.FileMode { 77 return fi.mode 78 } 79 func (fi bindataFileInfo) ModTime() time.Time { 80 return fi.modTime 81 } 82 func (fi bindataFileInfo) IsDir() bool { 83 return false 84 } 85 func (fi bindataFileInfo) Sys() interface{} { 86 return nil 87 }