Versions in this module Expand all Collapse all v0 v0.17.0 Apr 30, 2024 v0.16.0 Nov 9, 2023 Changes in this version + func BoolToPtr(b bool) *bool + func CreateSSHAuthorizedKey(tmpd string) ([]byte, string, error) + func DownloadImageAndDecompress(url, compressedDest string, skipSignature bool) (string, error) + func GetLocalFastBuildQemu() (string, error) + func IntToPtr(i int) *int + func IsCosaRoot(root string) (bool, error) + func LogFrom(l capnslog.LogLevel, r io.Reader) + func ParseDiskSpec(spec string) (int64, map[string]string, error) + func PathExists(path string) (bool, error) + func RequireCosaRoot(root string) error + func Retry(attempts int, delay time.Duration, f func() error) error + func RetryConditional(attempts int, delay time.Duration, shouldRetry func(err error) bool, ...) error + func RetryUntilTimeout(timeout, delay time.Duration, f func() error) error + func RunCmdTimeout(timeout time.Duration, cmd string, args ...string) error + func StrToPtr(s string) *string + func TargetDistro(build *builds.Build) (string, error) + func TargetDistroFromName(artifact string) string + func WaitUntilReady(timeout, delay time.Duration, checkFunction func() (bool, error)) error + type Endian int + const BIG + const LITTLE + var HostEndianness Endian + type ImageInfo struct + Format string + VirtualSize uint64 + func GetImageInfo(path string) (*ImageInfo, error) + type LocalBuild struct + Arch string + Dir string + Meta *cosa.Build + func GetLatestLocalBuild(root, arch string) (*LocalBuild, error) + func GetLocalBuild(root, buildid, arch string) (*LocalBuild, error)