ReadonlycallsNumber of primitive calls by name (fetchSecret, putSecret, …), for tests.
Static ReadonlycapabilitiesCapabilities to declare to the conformance runner.
Number of active watchers.
Whether close was called.
Number of stored secrets (tests).
Stops all watchers (the owning client calls this from close()); later calls fail with
CANCELLED. Idempotent. Subclasses overriding it must call super.close().
Deletes a secret; NotFoundError when missing.
ProtectedensureThrows CancelledError ("<operation>: client is closed", not retryable) once close
was called (SPEC §2.4). The public operations call it before any I/O; service operations
can call it too.
Whether the secret exists.
Optionaloptions: GetOptionsProtectedfetchReads metadata; null when missing.
ProtectedfetchReads a secret; null when missing.
The secret, or null when missing.
Every secret directly under path (non-recursive), keyed by full name.
Optionalpath: stringBoolean (true/false/1/0/yes/no/on/off), or null when missing.
Optionaloptions: GetOptionsParsed JSON, or null when missing (ValidationError when not JSON).
Optionaloptions: GetOptionsPresent secrets in request order (missing names omitted).
Optionaloptions: GetOptionsNumber, or null when missing (ValidationError when not a number).
Optionaloptions: GetOptionsUTF-8 text, or null when missing.
Optionaloptions: GetOptionsMetadata of the secrets directly under a prefix or path, sorted by name.
OptionalprefixOrPath: stringProtectedlistLists the secrets directly under a prefix or path (any order).
Sets environment variables from secrets: a path (one variable per secret directly under it)
or a mapping { ENV_NAME: "secret/name" }. Returns { envName: secretName } for the
variables that were set (never values).
Metadata, or null when missing.
ProtectedputWrites a secret; returns the new version or "".
ProtectedremoveDeletes a secret; must throw NotFoundError when missing.
The secret; NotFoundError when missing.
Optionaloptions: GetOptionsWrites a secret; returns the new version ("" when the service has no versions).
Stops every watcher started by this provider. Idempotent.
Polls a secret and calls onChange when its version (or SHA-256) changes.
StaticfullFull name for a name and optional path.
Optionalpath: string
Versioned in-memory BaseSecretsProvider for tests and the conformance suite. Versions are
"1","2", …;casis the expected current version (0= must not exist); names are flat strings where/separates paths. Capabilities:write,versions,delete.