HostKit.State (host_kit v0.1.0-beta.1)

Copy Markdown View Source

State snapshot persistence for HostKit plans and agent status.

Summary

Functions

read(path)

@spec read(Path.t()) :: {:ok, map()} | {:error, term()}

snapshot(subject, opts \\ [])

@spec snapshot(
  HostKit.Plan.t() | map(),
  keyword()
) :: map()

write(subject, path, opts \\ [])

@spec write(HostKit.Plan.t() | map(), Path.t(), keyword()) :: :ok | {:error, term()}