Skip to main content

canic_backup/restore/
mod.rs

1//! Module: restore
2//!
3//! Responsibility: plan, preview, journal, and execute restore workflows.
4//! Does not own: backup capture, backup persistence, or canister snapshot download.
5//! Boundary: consumes backup manifests and artifacts to produce restore plans and runner state.
6
7mod apply;
8mod plan;
9mod runner;
10
11pub(in crate::restore) use apply::RestoreApplyCommandOutputPair;
12use apply::RestoreApplyJournalReport;
13pub use apply::{
14    RestoreApplyArtifactCheck, RestoreApplyArtifactValidation, RestoreApplyCommandConfig,
15    RestoreApplyCommandOutput, RestoreApplyCommandPreview, RestoreApplyDryRun,
16    RestoreApplyDryRunError, RestoreApplyDryRunOperation, RestoreApplyJournal,
17    RestoreApplyJournalError, RestoreApplyJournalOperation, RestoreApplyOperationKind,
18    RestoreApplyOperationKindCounts, RestoreApplyOperationReceipt,
19    RestoreApplyOperationReceiptOutcome, RestoreApplyOperationState, RestoreApplyPendingSummary,
20    RestoreApplyProgressSummary, RestoreApplyReportOperation, RestoreApplyReportOutcome,
21    RestoreApplyRunnerCommand,
22};
23pub use plan::{
24    RestoreIdentitySummary, RestoreMapping, RestoreMappingEntry, RestoreOperationSummary,
25    RestoreOrderingDependency, RestoreOrderingRelationship, RestoreOrderingSummary, RestorePlan,
26    RestorePlanError, RestorePlanMember, RestorePlanner, RestoreReadinessSummary,
27    RestoreSnapshotSummary, RestoreVerificationSummary,
28};
29pub use runner::{
30    RESTORE_RUN_RECEIPT_COMPLETED, RESTORE_RUN_RECEIPT_FAILED,
31    RESTORE_RUN_RECEIPT_RECOVERED_FAILED, RESTORE_RUN_RECEIPT_RECOVERED_PENDING,
32    RestoreRunExecutedOperation, RestoreRunOperationReceipt, RestoreRunReceiptSummary,
33    RestoreRunResponse, RestoreRunnerCommandExecutor, RestoreRunnerCommandOutput,
34    RestoreRunnerConfig, RestoreRunnerError, RestoreRunnerOutcome, parse_uploaded_snapshot_id,
35    restore_run_dry_run, restore_run_execute_result_with_executor,
36    restore_run_execute_with_executor, restore_run_retry_failed, restore_run_unclaim_pending,
37};
38#[cfg(test)]
39mod tests;