ReqManagedAgents.Host.Config (req_managed_agents_host v0.1.0)

Copy Markdown View Source

Resolved, validated host configuration. The struct threaded through the host; not raw opts.

Summary

Types

store()

@type store() :: {module(), keyword()}

t()

@type t() :: %ReqManagedAgents.Host.Config{
  agent: ReqManagedAgents.Agent.Handle.t() | nil,
  environment: ReqManagedAgents.Provisioner.Environment.Handle.t() | nil,
  handler: module(),
  idle_timeout_ms: non_neg_integer(),
  metadata: map(),
  provider: module(),
  provider_opts: keyword(),
  store: store(),
  timeout_ms: non_neg_integer()
}

Functions

new(opts)

@spec new(keyword()) :: {:ok, t()} | {:error, {:invalid_config, atom()}}