Documentation
¶
Overview ¶
Package snapshot stores recovery snapshots. The Bootstrap defines what a snapshot contains; this package only keeps the document, outside the project, so that it survives `gtt clean`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
Dir string `json:"dir"`
Snapshot string `json:"snapshot"` // path of the Bootstrap snapshot document
Meta Meta `json:"meta"`
// Summary fields read from the Bootstrap document for display only.
BootstrapVersion string `json:"bootstrap_version"`
Primary string `json:"primary_ade"`
Participating []string `json:"participating"`
Profile string `json:"methodology_profile"`
Language string `json:"language"`
}
Info describes one stored snapshot.
type Meta ¶
type Meta struct {
Schema int `json:"schema"`
ProjectRoot string `json:"project_root"`
CreatedAt string `json:"created_at"`
CLIVersion string `json:"cli_version"`
BootstrapOrigin string `json:"bootstrap_origin,omitempty"`
BootstrapChecksum string `json:"bootstrap_checksum,omitempty"`
Reason string `json:"reason"`
}
Meta is the CLI's own record around a Bootstrap snapshot.