LemonCore.Env.Resolved (lemon_core v0.1.0)

View Source

A single resolved environment variable, as produced by LemonCore.Env.snapshot/0.

The custom Inspect implementation redacts :value whenever secret? is true, so accidentally logging or IO.inspect-ing a snapshot (e.g. in a doctor report) can't leak a credential.

Summary

Types

source()

@type source() :: :env | :alias | :default

t()

@type t() :: %LemonCore.Env.Resolved{
  env_var: String.t(),
  name: atom(),
  secret?: boolean(),
  source: source(),
  value: term()
}