Skip to main content

lattice_common/
lib.rs

1//! # lattice-common
2//!
3//! Shared types, configuration, and error handling for the Lattice scheduler.
4//!
5//! This crate defines the core domain model used across all Lattice components:
6//! - **Allocation**: The universal work unit (replaces Slurm job + K8s pod)
7//! - **Node**: Physical compute node with capabilities and ownership
8//! - **Tenant**: Organizational boundary with quotas
9//! - **VCluster**: Logical cluster with its own scheduling policy
10//! - **TopologyModel**: Slingshot/UE dragonfly group structure
11
12pub mod clients;
13pub mod config;
14pub mod error;
15pub mod metrics;
16pub mod proto;
17pub mod registry;
18#[cfg(feature = "scheduler-core")]
19pub mod scheduler_core_impls;
20pub mod secrets;
21pub mod traits;
22pub mod tsdb_client;
23pub mod types;
24pub mod uenv_metadata;
25
26pub use error::LatticeError;
27pub use types::*;