Skip to main content

BackupRunnerExecutor

Trait BackupRunnerExecutor 

Source
pub trait BackupRunnerExecutor {
    // Required methods
    fn preflight_receipts(
        &mut self,
        plan: &BackupPlan,
        preflight_id: &str,
        validated_at: &str,
        expires_at: &str,
    ) -> Result<BackupExecutionPreflightReceipts, BackupRunnerCommandError>;
    fn stop_canister(
        &mut self,
        canister_id: &str,
    ) -> Result<(), BackupRunnerCommandError>;
    fn start_canister(
        &mut self,
        canister_id: &str,
    ) -> Result<(), BackupRunnerCommandError>;
    fn create_snapshot(
        &mut self,
        canister_id: &str,
    ) -> Result<BackupRunnerSnapshotReceipt, BackupRunnerCommandError>;
    fn download_snapshot(
        &mut self,
        canister_id: &str,
        snapshot_id: &str,
        artifact_path: &Path,
    ) -> Result<(), BackupRunnerCommandError>;
}
Expand description

BackupRunnerExecutor

Required Methods§

Source

fn preflight_receipts( &mut self, plan: &BackupPlan, preflight_id: &str, validated_at: &str, expires_at: &str, ) -> Result<BackupExecutionPreflightReceipts, BackupRunnerCommandError>

Prove execution preflights before any mutating operation runs.

Source

fn stop_canister( &mut self, canister_id: &str, ) -> Result<(), BackupRunnerCommandError>

Stop one selected canister.

Source

fn start_canister( &mut self, canister_id: &str, ) -> Result<(), BackupRunnerCommandError>

Start one selected canister.

Source

fn create_snapshot( &mut self, canister_id: &str, ) -> Result<BackupRunnerSnapshotReceipt, BackupRunnerCommandError>

Create one selected canister snapshot and return the typed snapshot receipt.

Source

fn download_snapshot( &mut self, canister_id: &str, snapshot_id: &str, artifact_path: &Path, ) -> Result<(), BackupRunnerCommandError>

Download one selected snapshot into a temporary artifact directory.

Implementors§