use crate::{
InternalError,
cdk::types::Principal,
dto::canister::{
CanisterHistoryResponse, CanisterInspectionOutcome, CanisterInspectionReserveResponse,
},
ops::ic::mgmt::MgmtOps,
};
pub struct MgmtWorkflow;
impl MgmtWorkflow {
pub fn canister_inspection_reserve(
pid: Principal,
) -> Result<CanisterInspectionReserveResponse, InternalError> {
MgmtOps::canister_inspection_reserve(pid)
}
pub async fn canister_history(
pid: Principal,
) -> Result<CanisterHistoryResponse, InternalError> {
MgmtOps::canister_history(pid).await
}
pub async fn canister_inspection(
pid: Principal,
) -> Result<CanisterInspectionOutcome, InternalError> {
MgmtOps::canister_inspection(pid).await
}
}