Documentation ¶
Index ¶
- Constants
- Variables
- func BoardRoot(board string) string
- func BuildImageDir(board, 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, verifyKeyFile string) error
- func DownloadSignedFile(file, url string, client *http.Client, verifyKeyFile string) error
- func Enter(name string, args ...string) error
- func GetCoreOSAge() int64
- func GetDefaultAppId() string
- func OldEnter(name string, args ...string) error
- func RepoCache() string
- func RepoInit(chroot, url, branch, name string) error
- func RepoRoot() string
- func RepoSync(chroot string, force bool) error
- func RepoVerifyTag(branch string) error
- 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, verifyKeyFile string) error
- func Verify(signed, signature io.Reader, key string) error
- func VerifyFile(file, verifyKeyFile string) error
- type Versions
- func OSRelease(root string) (ver Versions, err error)
- func VersionsFromDir(dir string) (ver Versions, err error)
- func VersionsFromManifest() (Versions, error)
- func VersionsFromRemoteRepo(url, branch string) (ver Versions, err error)
- func VersionsFromSignedRemoteRepo(url, branch string) (ver Versions, err 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 DownloadSignedFile ¶
func Enter ¶
Enter the chroot with a login shell, optionally invoking a command. The command may be prefixed by environment variable assignments.
func GetCoreOSAge ¶
func GetCoreOSAge() int64
GetCoreOSAge returns the number of days since the CoreOS epoch.
func GetDefaultAppId ¶
func GetDefaultAppId() string
func RepoVerifyTag ¶ added in v0.5.0
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 ¶
type Versions ¶ added in v0.1.0
func VersionsFromDir ¶ added in v0.1.0
func VersionsFromManifest ¶ added in v0.1.0
func VersionsFromRemoteRepo ¶ added in v0.1.0
func VersionsFromSignedRemoteRepo ¶ added in v0.5.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.