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, RestoreApplyDryRunValidationError,
18    RestoreApplyJournal, RestoreApplyJournalError, RestoreApplyJournalOperation,
19    RestoreApplyOperationKind, RestoreApplyOperationKindCounts, RestoreApplyOperationReceipt,
20    RestoreApplyOperationReceiptOutcome, RestoreApplyOperationState, RestoreApplyPendingSummary,
21    RestoreApplyProgressSummary, RestoreApplyReportOperation, RestoreApplyReportOutcome,
22    RestoreApplyRunnerCommand,
23};
24pub use persistence::{
25    RestorePersistenceError, create_or_adopt_restore_apply_journal, create_or_adopt_restore_plan,
26    write_restore_apply_journal, write_restore_plan,
27};
28pub use plan::{
29    RestoreIdentitySummary, RestoreMapping, RestoreMappingEntry, RestoreOperationSummary,
30    RestoreOrderingDependency, RestoreOrderingRelationship, RestoreOrderingSummary, RestorePlan,
31    RestorePlanError, RestorePlanMember, RestorePlanner, RestoreReadinessSummary,
32    RestoreSnapshotSummary, RestoreVerificationSummary,
33};
34pub use runner::{
35    RESTORE_RUN_RECEIPT_COMPLETED, RESTORE_RUN_RECEIPT_FAILED,
36    RESTORE_RUN_RECEIPT_RECOVERED_FAILED, RestoreRunExecutedOperation, RestoreRunOperationReceipt,
37    RestoreRunReceiptSummary, RestoreRunResponse, RestoreRunnerCommandExecutor,
38    RestoreRunnerCommandOutput, RestoreRunnerConfig, RestoreRunnerError, RestoreRunnerOutcome,
39    parse_uploaded_snapshot_id, restore_run_dry_run, restore_run_execute_result_with_executor,
40    restore_run_execute_with_executor, restore_run_retry_failed,
41};
42#[cfg(test)]
43mod tests;