sdk

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2016 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoreOSEpoch = 1372636800
)

Variables

View Source
var (
	USRAUUID = uuid.UUID{0x71, 0x30, 0xC9, 0x4A, 0x21, 0x3A, 0x4E, 0x5A, 0x8E, 0x26, 0x6C, 0xCE, 0x96, 0x62, 0xF1, 0x32}
	USRBUUID = uuid.UUID{0xE0, 0x3D, 0xD3, 0x5C, 0x7C, 0x2D, 0x4A, 0x47, 0xB3, 0xFE, 0x27, 0xF1, 0x57, 0x80, 0xA5, 0x7C}
)

Partition UUIDs for CoreOS systems.

Functions

func BuildImageDir

func BuildImageDir(version string) string

version may be "latest" or a full version like "752.1.0+2015-07-27-1656"

func BuildRoot

func BuildRoot() string

func DefaultBoard

func DefaultBoard() string

func Delete

func Delete(name string) error

func DownloadFile

func DownloadFile(file, fileURL string, client *http.Client) error

func DownloadSDK

func DownloadSDK(version string) error

func DownloadSignedFile

func DownloadSignedFile(file, url string, client *http.Client) error

func Enter

func Enter(name string, args ...string) error

func GetCoreOSAge

func GetCoreOSAge() int64

GetCoreOSAge returns the number of days since the CoreOS epoch.

func GetDefaultAppId

func GetDefaultAppId() string

func GetLatestVersion

func GetLatestVersion() (string, error)

func GetSDKVersion

func GetSDKVersion() (string, error)

func GetSDKVersionFromDir

func GetSDKVersionFromDir(dir string) (string, error)

func GetSDKVersionFromRemoteRepo

func GetSDKVersionFromRemoteRepo(url, branch string) (string, error)

func GetVersionFromDir

func GetVersionFromDir(dir string) (string, error)

func OldEnter

func OldEnter(name string, args ...string) error

func RepoCache

func RepoCache() string

func RepoInit

func RepoInit(name, manifest, manifestName, branch string) error

func RepoRoot

func RepoRoot() string

func Setup

func Setup(name string) error

func TarballName

func TarballName(version string) string

func TarballURL

func TarballURL(version string) string

func Unpack

func Unpack(version, name string) error

func UpdateFile

func UpdateFile(file, url string, client *http.Client) error

UpdateFile downloads a file to temp dir and replaces the file only if contents have changed. If tempDir is "" default will be os.TempDir(). Leave client nil to use default.

func UpdateSignedFile

func UpdateSignedFile(file, url string, client *http.Client) error

UpdateSignedFile will download and replace the local file if the published signature doesn't match the local copy. Leave client nil to use default.

func Verify

func Verify(signed, signature io.Reader) error

func VerifyFile

func VerifyFile(file string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL