Skip to main content

Crate gcp_lite_rs

Crate gcp_lite_rs 

Source
Expand description

Lightweight HTTP-based client for Google Cloud Platform APIs.

gcp-http-lite provides clean REST API access without the overhead of gRPC. It includes automatic retry, backoff, structured errors, and multi-tenant support.

§Quick Start

use gcp_lite::{GcpHttpClient, token::StaticTokenProvider};

let provider = StaticTokenProvider::new("your-token");
let client = GcpHttpClient::builder()
    .token_provider(provider)
    .build()?;

let compute = client.compute();

Re-exports§

pub use client::BuilderError;
pub use client::GcpHttpClient;
pub use client::GcpHttpClientBuilder;
pub use error::GcpError;
pub use error::Result;
pub use operation::ContainerOperation;
pub use operation::GkeBackupOperation;
pub use operation::Operation;
pub use operation::PollConfig;
pub use operation::ServiceUsageOperation;
pub use operation::SqlOperation;
pub use rate_limit::RateLimitConfig;

Modules§

api
GCP API client implementations.
auth
Authentication module for GCP credentials.
client
Core HTTP client for GCP API access.
error
Error types for GCP HTTP client operations.
operation
Long-running operation polling for GCP APIs.
rate_limit
Rate limiting configuration and runtime for GCP API requests.
retry
Retry and backoff configuration for HTTP requests.
token
Token provider abstractions for GCP authentication.
types
GCP API type definitions.

Structs§

RateLimitStats
Snapshot of rate limiting state for a single API.
RetryConfig
Configuration for retry behavior