HostKit.Secret (host_kit v0.1.0-beta.7)

Copy Markdown View Source

References to secrets resolved at HostKit control-plane boundaries.

Summary

Types

source()

@type source() ::
  {:env, String.t()}
  | {:file, String.t()}
  | {:command, {String.t(), [String.t()]}}

t()

@type t() :: %HostKit.Secret{source: source()}

Functions

command(command)

@spec command(String.t() | [String.t()] | {String.t(), [String.t()]}) :: t()

env(name)

@spec env(String.t()) :: t()

file(path)

@spec file(String.t()) :: t()

from_opts!(opts)

@spec from_opts!(keyword()) :: t() | :redacted

resolve!(value)

@spec resolve!(term()) :: term()

secret?(map)

@spec secret?(term()) :: boolean()