Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireRoot ¶
func RequireRoot()
RequireRoot checks whether we are currently runnning as root. If not, it will immediately bail.
Types ¶
type ReleaseManifestV1 ¶
type ReleaseManifestV1 struct { Build int32 `json:"build"` Codename string `json:"codename"` URL string `json:"url"` PublishedAt string `json:"published_at"` Images map[string]string `json:"images"` }
ReleaseManifestV1 describes a the build manifests used by Kamil's update system in late 2016.
func (*ReleaseManifestV1) ToV2 ¶
func (rm *ReleaseManifestV1) ToV2() *ReleaseManifestV2
ToV2 converts a manifest from v1 to v2
type ReleaseManifestV2 ¶
type ReleaseManifestV2 struct { Build int32 `json:"build"` Codename string `json:"codename"` ReleaseNotesURL string `json:"url"` PublishedAt string `json:"published_at"` Images []ReleaseManifestV2Image `json:"images"` }
ReleaseManifestV2 describes the build manifests introduced for platconf by Kamil in early 2017
func (*ReleaseManifestV2) GetImageByName ¶
func (rm *ReleaseManifestV2) GetImageByName(name string) *ReleaseManifestV2Image
GetImageByName returns an image with a given full name from the manifest's image array, or nil if the image is not included in the manifest
type ReleaseManifestV2Image ¶
type ReleaseManifestV2Image struct { Name string `json:"name"` // full image name w/ registry name minus tag Tag string `json:"tag"` // PreDownload bool `json:"pre_download"` // Should the image be downloaded pre-emptively by update? }
ReleaseManifestV2Image describes an image entry in ReleaseManifestV2
Click to show internal directories.
Click to hide internal directories.