use gobindata
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
bd09d2e7eb
commit
045f3fa72d
48 changed files with 4102 additions and 32 deletions
235
image/bindata.go
Normal file
235
image/bindata.go
Normal file
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue