interface IGcpSecretsClient
Since 0.1.0

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

Methods

accessSecretVersion(name: string): Promise<string | null>

Accesses the latest enabled version of a secret.

addSecretVersion(
name: string,
value: string
): Promise<void>

Adds a new version to a secret.

Since 0.5.0
optional
isHealthy(): Promise<boolean>

Optional non-mutating reachability probe (M90b). See IAwsSecretsClient.isHealthy for the contract.

Usage

import { type IGcpSecretsClient } from "secrets-plugin/src/index.ts";