Skip to main content

canic_host/observatory/
mod.rs

1//! Passive Fleet observatory and bounded downstream presentation.
2//!
3//! Existing authenticated role endpoints own observations; this owner cannot mutate a Fleet.
4
5pub mod model;
6pub mod ops;
7pub mod policy;
8#[cfg(test)]
9mod tests;
10pub mod view;
11pub mod workflow;
12
13/// Failure to assemble or present one bounded observatory snapshot.
14#[derive(Debug, thiserror::Error)]
15pub enum ObservatoryError {
16    #[error("observatory {0} exceeds its explicit bound")]
17    Bound(&'static str),
18    #[error("invalid observatory profile or selection")]
19    Profile,
20    #[error("Fleet authority changed during observation; collect a new snapshot")]
21    AuthorityChanged,
22    #[error(transparent)]
23    Io(#[from] std::io::Error),
24    #[error(transparent)]
25    Json(#[from] serde_json::Error),
26}