use gobindata

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-03-19 23:26:51 -04:00
parent bd09d2e7eb
commit 045f3fa72d
48 changed files with 4102 additions and 32 deletions

235
image/bindata.go Normal file

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,21 @@
package image
import (
"fmt"
)
// NAME is the name of the image that is embedded at compile time.
var NAME string
// SHA is the sha digest of the image that is embedded at compile time.
var SHA string
// Data returns the tarball image data that is embedded at compile time.
func Data() ([]byte, error) {
data, err := Asset("image.tar")
if err != nil {
return nil, fmt.Errorf("getting bindata asset image.tar failed: %v", err)
}
return data, nil
}