Setu-TS
    Preparing search index...

    Interface IGcpSecretsClient

    Structural shape of a GCP Secret Manager facade (injected or SDK-adapted).

    0.1.0

    interface IGcpSecretsClient {
        accessSecretVersion(name: string): Promise<string | null>;
        addSecretVersion(name: string, value: string): Promise<void>;
        isHealthy?(): Promise<boolean>;
    }
    Index
    • Accesses the latest enabled version of a secret.

      Parameters

      • name: string

        The secret name (short id; the provider builds the resource path)

      Returns Promise<string | null>

      The secret string, or null when it does not exist

    • Adds a new version to a secret.

      Parameters

      • name: string

        The secret name

      • value: string

        The new secret value

      Returns Promise<void>