Liking cljdoc? Tell your friends :D

hive-compose.adapter.secrets

Secret references read from their stores at spawn. The port is hive-system's ISecretBackend; a resolver is {scheme backend}, one backend per scheme a reference may name. :pass is hive-system's PassBackend: pass <path> through the injected exec, its first non-blank line, trimmed.

A failure names the variable, the reference and the store's reason, never a value. A new scheme ({:env "VAR"}) is a backend of that id here and a map in hive-compose.schema/SecretRef.

Secret references read from their stores at spawn. The port is hive-system's
`ISecretBackend`; a resolver is {scheme backend}, one backend per scheme a
reference may name. `:pass` is hive-system's PassBackend: `pass <path>`
through the injected `exec`, its first non-blank line, trimmed.

A failure names the variable, the reference and the store's reason, never a
value. A new scheme (`{:env "VAR"}`) is a backend of that id here and a map
in `hive-compose.schema/SecretRef`.
raw docstring

make-resolverclj

(make-resolver opts)

{scheme ISecretBackend}. opts: :exec, the shell pass runs through (default hive-system shell.core/exec!).

{scheme ISecretBackend}. `opts`: :exec, the shell `pass` runs through
(default hive-system `shell.core/exec!`).
sourceraw docstring

resolve-envclj

(resolve-env resolver env)

Result<{name string}>: env with every reference read from its store, in name order; the first that cannot be read is the error. Plain strings pass through untouched, and an env without references touches no store.

Result<{name string}>: `env` with every reference read from its store, in
name order; the first that cannot be read is the error. Plain strings pass
through untouched, and an env without references touches no store.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close