platconf

package
v0.0.0-...-58bc628 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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