pub mod auth;
pub mod cascade;
pub mod config;
pub mod ic;
pub mod perf;
pub mod placement;
pub mod replay;
pub mod rpc;
pub mod runtime;
pub mod storage;
pub mod topology;
pub mod prelude {
pub use crate::{
cdk::{
candid::CandidType,
types::{Account, Cycles, Principal},
},
ids::CanisterRole,
log,
log::Topic,
};
}
use crate::{InternalError, InternalErrorOrigin};
use thiserror::Error as ThisError;
#[derive(Debug, ThisError)]
pub enum OpsError {
#[error(transparent)]
ConfigOps(#[from] config::ConfigOpsError),
#[error(transparent)]
IcOps(#[from] ic::IcOpsError),
#[error(transparent)]
RpcOps(#[from] rpc::RpcOpsError),
#[error(transparent)]
RuntimeOps(#[from] runtime::RuntimeOpsError),
#[error(transparent)]
StorageOps(#[from] storage::StorageOpsError),
}
impl From<OpsError> for InternalError {
fn from(err: OpsError) -> Self {
Self::ops(InternalErrorOrigin::Ops, err.to_string())
}
}