Versions in this module Expand all Collapse all v0 v0.6.0 Oct 30, 2026 Changes in this version + const EncryptionAlgorithm + var HistoryTables = []string + func CheckPrerequisites(p Prerequisites) error + func ErrBackupNotFound(id string) error + func ErrChecksumMismatch(detail string) error + func ErrDestinationUnavailable(detail string) error + func ErrInvalidComponent(component string) error + func ErrInvalidMode(mode string) error + func ErrPrerequisitesMissing(detail string) error + func ErrSchemaVersionMismatch(detail string) error + func ErrStackRequired(components string) error + type Artifact struct + BackupRunID string + ChecksumSHA256 string + Component Component + CreatedAt time.Time + EncryptionKeyID string + ID string + Location string + ResourceName string + SizeBytes int64 + type BackupRun struct + CreatedAt time.Time + Error string + FinishedAt *time.Time + ID string + Manifest map[string]any + Mode Mode + OrgID string + QuiesceEndedAt *time.Time + QuiesceStartedAt *time.Time + SchemaVersion int + Scope []Component + SetID string + StackID string + StartedAt *time.Time + Status Status + TotalBytes int64 + Trigger Trigger + func NewBackupRun(orgID string, mode Mode, trigger Trigger, scope []Component) *BackupRun + func (r *BackupRun) BeginQuiesce() + func (r *BackupRun) Complete(results map[Component]error) + func (r *BackupRun) EndQuiesce() + func (r *BackupRun) Fail(reason string) + func (r *BackupRun) RequiresQuiesce() bool + func (r *BackupRun) Start() error + type Component string + const ComponentKeycloakDB + const ComponentNamespaceResources + const ComponentOpenBaoKV + const ComponentPlatformDB + const ComponentSharedResources + const ComponentVolume + func ModeComponents(mode Mode) []Component + func ParseComponents(raw []string) ([]Component, error) + type ComponentEntry struct + ChecksumSHA256 string + Component Component + Location string + ResourceName string + SizeBytes int64 + type DanglingReference struct + Path string + TokenSourceID string + type EncryptionInfo struct + Algorithm string + KeyID string + type GatewayAliasesOutcome struct + Error string + GatewayIP string + Updated []string + type HelmReleaseDrift struct + BackedUp string + Current string + Release string + func CompareHelmReleases(backedUp, current []HelmReleaseSpec) []HelmReleaseDrift + type HelmReleaseSpec struct + AppVersion string + Chart string + Name string + Revision int + Version string + type IntegrityReport struct + CheckedAt time.Time + CheckedPaths int + Dangling []DanglingReference + GatewayAliases *GatewayAliasesOutcome + SharedComponents *SharedComponentsOutcome + VaultImport *VaultImportOutcome + func (r IntegrityReport) HasIssues() bool + type Manifest struct + BackupRunID string + Components []ComponentEntry + CreatedAt time.Time + Encryption EncryptionInfo + HelmReleases []HelmReleaseSpec + Mode Mode + Namespace string + OpenBaoKVPathCount int + OrgID string + PGDumpVersion string + PGServerVersion string + PlatformVersion string + QuiesceWindow *QuiesceWindow + SchemaVersion int + StackID string + Trigger Trigger + Volumes []VolumeSpec + Workloads []WorkloadSpec + func BuildManifest(run *BackupRun, in ManifestInput) Manifest + type ManifestInput struct + Artifacts []Artifact + EncryptionKeyID string + HelmReleases []HelmReleaseSpec + Namespace string + OpenBaoKVPathCount int + PGDumpVersion string + PGServerVersion string + Plan QuiescePlan + PlatformVersion string + Volumes []VolumeSpec + type Mode string + const ModeFull + const ModePlatformOnly + const ModeStackOnly + type Prerequisites struct + BackupSealKeyPresent bool + DestinationCredsPresent bool + DestinationReachable bool + EncryptionKeyPresent bool + type QuiescePlan struct + Targets []QuiesceTarget + func NewQuiescePlan(workloads []Workload) QuiescePlan + func (p QuiescePlan) IsEmpty() bool + func (p QuiescePlan) ResumeOrder() []QuiesceTarget + type QuiesceTarget struct + Kind string + Name string + Namespace string + OriginalReplicas int32 + OwnerManaged bool + ScaleDownTo int32 + type QuiesceWindow struct + EndedAt time.Time + StartedAt time.Time + func (w *QuiesceWindow) Duration() time.Duration + type RestoreMode = Mode + type RestoreRun struct + BackupRunID string + CreatedAt time.Time + Error string + FinishedAt *time.Time + ID string + IntegrityReport IntegrityReport + Mode RestoreMode + SchemaCheck SchemaCheckResult + StartedAt *time.Time + Status RestoreStatus + func NewRestoreRun(backupRunID string, mode RestoreMode) *RestoreRun + func (r *RestoreRun) Fail(reason string) + func (r *RestoreRun) Start() error + func (r *RestoreRun) Succeed() + type RestoreStatus = Status + type RetentionPolicy struct + Daily int + MaxTotalBytes int64 + Monthly int + Weekly int + func DefaultRetentionPolicy() RetentionPolicy + func (p RetentionPolicy) SelectForDeletion(runs []RunSummary) []string + type RunSummary struct + CreatedAt time.Time + ID string + Status Status + TotalBytes int64 + type SchemaCheckResult struct + Allowed bool + BackupVersion int + CurrentVersion int + MigrateAfterRestore bool + Reason string + func CheckSchemaVersion(backupVersion int, current SchemaState) SchemaCheckResult + type SchemaState struct + Dirty bool + Version int + type SetMember struct + Mode Mode + Namespace string + Scope []Component + StackID string + func PlanBackupSet(stacks []StackRef) []SetMember + type SetRestoreStep struct + BackupRunID string + Mode RestoreMode + Namespace string + StackID string + func PlanSetRestore(runs []*BackupRun) (steps []SetRestoreStep, skipped []string) + type SharedComponentsOutcome struct + Steps []string + Warnings []string + type StackRef struct + ID string + Namespace string + type Status string + const StatusFailed + const StatusPartial + const StatusPending + const StatusRunning + const StatusSucceeded + func SetStatus(runs []*BackupRun) Status + type Trigger string + const TriggerManual + const TriggerSchedule + type VaultImportOutcome struct + Attempts int + Error string + Imported bool + type VolumeSpec struct + ChecksumSHA256 string + Name string + SizeBytes int64 + StorageClass string + type Workload struct + Kind string + Name string + Namespace string + OwnerManaged bool + Replicas int32 + type WorkloadSpec struct + Kind string + Name string + Namespace string + OriginalReplicas int32 + OwnerManaged bool