use super::{MgmtInfra, MgmtOps, management_call};
use crate::{InternalError, cdk::types::Principal};
impl MgmtOps {
pub async fn list_canister_snapshot_ids(
canister_id: Principal,
) -> Result<Vec<Vec<u8>>, InternalError> {
management_call(MgmtInfra::list_canister_snapshot_ids(canister_id)).await
}
pub async fn delete_canister_snapshot(
canister_id: Principal,
snapshot_id: Vec<u8>,
) -> Result<(), InternalError> {
management_call(MgmtInfra::delete_canister_snapshot(
canister_id,
snapshot_id,
))
.await
}
}