Xamal.Configuration.Env (xamal v0.3.0)

Copy Markdown View Source

Environment variable configuration.

Handles clear (non-secret) and secret env vars. Secret keys are resolved from the secrets store at deploy time.

Summary

Functions

Returns just the clear (non-secret) env vars.

Merge two Env configurations. Clear vars are merged, secret keys are unioned.

Generate an env file string for the secret values.

Returns just the secret env vars (resolved).

Returns the full env map with secrets resolved.

Functions

clear_map(env)

Returns just the clear (non-secret) env vars.

merge(base, override)

Merge two Env configurations. Clear vars are merged, secret keys are unioned.

new(config, secrets)

secrets_env_file(env)

Generate an env file string for the secret values.

secrets_map(env)

Returns just the secret env vars (resolved).

to_map(env)

Returns the full env map with secrets resolved.