Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
Types ¶
type BackupData ¶
type BackupData struct {
// Version of the backup format.
Version string `json:"version"`
// CreatedAt is the RFC3339 timestamp when the backup was created.
CreatedAt string `json:"created_at"`
// Pipeds is the list of piped records discovered from the source control plane.
Pipeds []*model.Piped `json:"pipeds"`
// Applications is the full list of applications from the source control plane.
Applications []*model.Application `json:"applications"`
}
BackupData holds the exported piped and application data from a source control plane.
type PipedMapping ¶
type PipedMapping struct {
// OldPipedID is the piped ID in the source control plane.
OldPipedID string `json:"old_piped_id"`
// NewPipedID is the newly registered piped ID in the target control plane.
NewPipedID string `json:"new_piped_id"`
// NewKey is the newly issued piped API key. Update the piped config with this value.
NewKey string `json:"new_key"`
// NewBase64Key is the newly issued piped API key in base64 encoding. Update the piped config with this value.
NewBase64Key string `json:"new_base64_key"`
// PipedName is the human-readable name of the piped for reference.
PipedName string `json:"piped_name"`
}
PipedMapping records the mapping of a piped from the source to the target control plane.
type RestoreResult ¶
type RestoreResult struct {
// PipedMappings maps each source piped to its new registration on the target.
PipedMappings []PipedMapping `json:"piped_mappings"`
// RestoredApplicationCount is the number of applications successfully created.
RestoredApplicationCount int `json:"restored_application_count"`
// FailedApplicationCount is the number of applications that failed to be created.
FailedApplicationCount int `json:"failed_application_count"`
}
RestoreResult summarises what was created on the target control plane.
Click to show internal directories.
Click to hide internal directories.