HostKit.Resources.EnvFile (host_kit v0.1.0-beta.1)

Copy Markdown View Source

Desired dotenv-compatible env file with redacted secret entries.

Summary

Types

entry()

@type entry() :: {:set, String.t(), String.t()} | {:secret, String.t(), source()}

source()

@type source() :: HostKit.Secret.t()

t()

@type t() :: %HostKit.Resources.EnvFile{
  depends_on: [term()],
  entries: [entry()],
  group: String.t() | nil,
  meta: map(),
  mode: non_neg_integer() | nil,
  owner: String.t() | nil,
  path: String.t()
}

Functions

id(env_file)

new(path, opts \\ [])

@spec new(
  String.t(),
  keyword()
) :: t()