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 persistence;
9mod plan;
10mod runner;
11
12pub(in crate::restore) use apply::RestoreApplyCommandOutputPair;
13use apply::RestoreApplyJournalReport;
14pub use apply::{
15    RestoreApplyArtifactCheck, RestoreApplyArtifactValidation, RestoreApplyCommandConfig,
16    RestoreApplyCommandOutput, RestoreApplyCommandPreview, RestoreApplyDryRun,
17    RestoreApplyDryRunError, RestoreApplyDryRunOperation, RestoreApplyJournal,
18    RestoreApplyJournalError, RestoreApplyJournalOperation, RestoreApplyOperationKind,
19    RestoreApplyOperationKindCounts, RestoreApplyOperationReceipt,
20    RestoreApplyOperationReceiptOutcome, RestoreApplyOperationState, RestoreApplyPendingSummary,
21    RestoreApplyProgressSummary, RestoreApplyReportOperation, RestoreApplyReportOutcome,
22    RestoreApplyRunnerCommand,
23};
24pub use persistence::{RestorePersistenceError, write_restore_apply_journal, write_restore_plan};
25pub use plan::{
26    RestoreIdentitySummary, RestoreMapping, RestoreMappingEntry, RestoreOperationSummary,
27    RestoreOrderingDependency, RestoreOrderingRelationship, RestoreOrderingSummary, RestorePlan,
28    RestorePlanError, RestorePlanMember, RestorePlanner, RestoreReadinessSummary,
29    RestoreSnapshotSummary, RestoreVerificationSummary,
30};
31pub use runner::{
32    RESTORE_RUN_RECEIPT_COMPLETED, RESTORE_RUN_RECEIPT_FAILED,
33    RESTORE_RUN_RECEIPT_RECOVERED_FAILED, RESTORE_RUN_RECEIPT_RECOVERED_PENDING,
34    RestoreRunExecutedOperation, RestoreRunOperationReceipt, RestoreRunReceiptSummary,
35    RestoreRunResponse, RestoreRunnerCommandExecutor, RestoreRunnerCommandOutput,
36    RestoreRunnerConfig, RestoreRunnerError, RestoreRunnerOutcome, parse_uploaded_snapshot_id,
37    restore_run_dry_run, restore_run_execute_result_with_executor,
38    restore_run_execute_with_executor, restore_run_retry_failed, restore_run_unclaim_pending,
39};
40#[cfg(test)]
41mod tests;