Expand description
Platform API client module
Provides authenticated access to the Syncable Platform API for managing organizations, projects, and other platform resources.
§Example
ⓘ
use syncable_cli::platform::api::PlatformApiClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = PlatformApiClient::new()?;
// List organizations
let orgs = client.list_organizations().await?;
for org in orgs {
println!("Organization: {}", org.name);
}
Ok(())
}Re-exports§
pub use client::PlatformApiClient;pub use error::PlatformApiError;pub use error::Result;pub use types::ArtifactRegistry;pub use types::CloudCredentialStatus;pub use types::CloudProvider;pub use types::ClusterEntity;pub use types::ClusterStatus;pub use types::DeployedService;pub use types::DeploymentConfig;pub use types::DeploymentTaskStatus;pub use types::Environment;pub use types::Organization;pub use types::PaginatedDeployments;pub use types::PaginationInfo;pub use types::Project;pub use types::ProjectMember;pub use types::RegistryStatus;pub use types::TriggerDeploymentRequest;pub use types::TriggerDeploymentResponse;pub use types::UserProfile;