tsafe-cli 1.0.21

tsafe CLI — local secret and credential manager (replaces .env files)
Documentation
use thiserror::Error;

#[derive(Debug, Error)]
pub enum GcpError {
    /// A required configuration value is missing or invalid.
    #[error("GCP configuration error: {0}")]
    Config(String),

    /// Credential acquisition failed (ADC, metadata server, or env).
    #[error("GCP authentication failed: {0}")]
    Auth(String),

    /// The requested secret does not exist.
    #[error("GCP secret not found: {0}")]
    NotFound(String),

    /// Unexpected HTTP status returned by Secret Manager.
    #[error("GCP Secret Manager HTTP {status}: {message}")]
    Http { status: u16, message: String },

    /// Network or ureq transport error.
    #[error("transport error: {0}")]
    Transport(String),
}