Number of active watchers.
Whether close was called.
The wrapped provider.
Drops every cached entry.
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: GetOptionsDrops every cached entry of name (all versions and paths).
Metadata 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).
Counters and current size.
Stops every watcher started by this provider. Idempotent.
Polls a secret and calls onChange when its version (or SHA-256) changes.
Read-through LRU cache in front of a SecretsProvider. Reads (
get*,require,exists,getMany) are cached, including negative results; writes pass through and invalidate the name;list,getAllandmetadataalways reach the provider.