syncable_cli/platform/api/mod.rs
1//! Platform API client module
2//!
3//! Provides authenticated access to the Syncable Platform API for managing
4//! organizations, projects, and other platform resources.
5//!
6//! # Example
7//!
8//! ```rust,ignore
9//! use syncable_cli::platform::api::PlatformApiClient;
10//!
11//! #[tokio::main]
12//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
13//! let client = PlatformApiClient::new()?;
14//!
15//! // List organizations
16//! let orgs = client.list_organizations().await?;
17//! for org in orgs {
18//! println!("Organization: {}", org.name);
19//! }
20//!
21//! Ok(())
22//! }
23//! ```
24
25pub mod client;
26pub mod error;
27pub mod types;
28
29// Re-export commonly used items
30pub use client::PlatformApiClient;
31pub use error::{PlatformApiError, Result};
32pub use types::{
33 ArtifactRegistry, CloudCredentialStatus, CloudProvider, ClusterEntity, ClusterStatus,
34 DeployedService, DeploymentConfig, DeploymentTaskStatus, Environment, Organization,
35 PaginatedDeployments, PaginationInfo, Project, ProjectMember, RegistryStatus,
36 TriggerDeploymentRequest, TriggerDeploymentResponse, UserProfile,
37};