Skip to main content

ic_query/cloud_engine/provider/
mod.rs

1//! Module: cloud_engine::provider
2//!
3//! Responsibility: official Dashboard CloudEngine provider requests, reports, validation, and text.
4//! Does not own: native control-plane queries, Registry inventory, CLI parsing, or caching.
5//! Boundary: filters one complete Dashboard provider resource by explicit CloudEngine evidence.
6
7#[cfg(feature = "dashboard-host")]
8mod host;
9mod model;
10mod text;
11
12#[cfg(feature = "dashboard-host")]
13pub use host::{
14    CloudEngineProviderSource, build_cloud_engine_provider_info_report,
15    build_cloud_engine_provider_info_report_with_source, build_cloud_engine_provider_list_report,
16    build_cloud_engine_provider_list_report_with_source,
17};
18pub use model::{
19    CloudEngineProviderInfoReport, CloudEngineProviderInfoRequest, CloudEngineProviderListReport,
20    CloudEngineProviderListRequest, CloudEngineProviderLocation, CloudEngineProviderRow,
21};
22#[cfg(feature = "dashboard-host")]
23pub use model::{CloudEngineProviderInfoSourceData, CloudEngineProviderListSourceData};
24pub use text::{cloud_engine_provider_info_report_text, cloud_engine_provider_list_report_text};
25
26/// Maximum provider rows accepted from the complete Dashboard resource.
27pub const MAX_CLOUD_ENGINE_PROVIDER_SOURCE_ROWS: usize = 1_000;
28
29/// Maximum general or CloudEngine locations accepted for one provider.
30pub const MAX_CLOUD_ENGINE_PROVIDER_LOCATIONS: usize = 100;
31
32#[cfg(test)]
33mod tests;