Documentation
¶
Overview ¶
Package secrets resolves an api_key_ref (e.g. "env:BRAINJAR_API_KEY") to the plaintext bearer token a RemoteBackend sends on every request.
The env-var resolver is the only implementation that ships today. File-backed and OS-keyring resolvers can land later without pulling transitive dependencies into internal/backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvResolver ¶
type EnvResolver struct{}
EnvResolver resolves refs of the form "env:NAME" by reading the named environment variable. Any other scheme (or a missing/empty env var) is surfaced as a structured error so the CLI can render it alongside every other apperror.
Click to show internal directories.
Click to hide internal directories.