Documentation ¶
Index ¶
- Constants
- Variables
- func BuildImageDir(version string) string
- func BuildRoot() string
- func DefaultBoard() string
- func Delete(name string) error
- func DownloadFile(file, fileURL string, client *http.Client) error
- func DownloadSDK(version string) error
- func DownloadSignedFile(file, url string, client *http.Client) error
- func Enter(name string, args ...string) error
- func GetCoreOSAge() int64
- func GetDefaultAppId() string
- func GetLatestVersion() (string, error)
- func GetSDKVersion() (string, error)
- func GetSDKVersionFromDir(dir string) (string, error)
- func GetSDKVersionFromRemoteRepo(url, branch string) (string, error)
- func GetVersionFromDir(dir string) (string, error)
- func OldEnter(name string, args ...string) error
- func RepoCache() string
- func RepoInit(name, manifest, manifestName, branch string) error
- func RepoRoot() string
- func Setup(name string) error
- func TarballName(version string) string
- func TarballURL(version string) string
- func Unpack(version, name string) error
- func UpdateFile(file, url string, client *http.Client) error
- func UpdateSignedFile(file, url string, client *http.Client) error
- func Verify(signed, signature io.Reader) error
- func VerifyFile(file string) error
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 ¶
version may be "latest" or a full version like "752.1.0+2015-07-27-1656"
func DefaultBoard ¶
func DefaultBoard() string
func DownloadSDK ¶
func GetCoreOSAge ¶
func GetCoreOSAge() int64
GetCoreOSAge returns the number of days since the CoreOS epoch.
func GetDefaultAppId ¶
func GetDefaultAppId() string
func GetLatestVersion ¶
func GetSDKVersion ¶
func GetSDKVersionFromDir ¶
func GetVersionFromDir ¶
func TarballName ¶
func TarballURL ¶
func UpdateFile ¶
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 ¶
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 VerifyFile ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.