Documentation
¶
Overview ¶
Package promote implements staging-to-production promotion with diff preview and rollback.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DiffEntry ¶
type DiffEntry struct {
Key string `json:"key"`
SourceValue string `json:"source_value"`
TargetValue string `json:"target_value"`
Status string `json:"status"` // added, removed, changed, same
}
DiffEntry represents a single difference between environments.
type DiffResult ¶
type DiffResult struct {
Source string `json:"source"`
Target string `json:"target"`
Migrations []DiffEntry `json:"migrations"`
EnvVars []DiffEntry `json:"env_vars"`
Images []DiffEntry `json:"images"`
Metadata []DiffEntry `json:"metadata"`
Timestamp time.Time `json:"timestamp"`
}
DiffResult holds the comparison between two environments.
type PromotionRecord ¶
type PromotionRecord struct {
ID string `json:"id"`
Source string `json:"source"`
Target string `json:"target"`
ApproveID string `json:"approve_id"`
BackupTag string `json:"backup_tag"`
StartedAt time.Time `json:"started_at"`
CompletedAt time.Time `json:"completed_at"`
Status string `json:"status"` // success, failed, rolled_back
Error string `json:"error,omitempty"`
}
PromotionRecord records an executed promotion.
Click to show internal directories.
Click to hide internal directories.