Backplane.AgentRuntime.Plan (backplane_agent_runtime v1.6.0)

Copy Markdown

Host-started task-scoped plan document with expected-revision replacement.

Summary

Types

state()

@type state() :: %{content: map(), revision: non_neg_integer(), scope: term()}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

read(server)

@spec read(pid()) :: {:ok, state()} | {:error, term()}

start_link(scope, content \\ %{})

@spec start_link(term(), map()) :: {:ok, pid()} | {:error, term()}

update(server, expected_revision, content)

@spec update(pid(), integer(), map()) ::
  {:ok, state()} | {:error, Backplane.AgentRuntime.Error.t()}