Backplane. AgentRuntime. Resource behaviour
(backplane_agent_runtime v1.6.0)
Copy Markdown
Scoped resource operations with revision-safe writes and bounded output.
The adapter owns real confinement. This module validates references, expected
revisions, and output bounds without pretending Path.expand is a sandbox.
Summary
Types
@type t() :: map()
Callbacks
@callback grep(map(), map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@callback list_dir(map(), map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@callback read(map(), map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
Functions
@spec grep(t(), map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec list_dir(t(), map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec new(map()) :: {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}
@spec read(t(), map(), keyword()) :: {:ok, map()} | {:error, Backplane.AgentRuntime.Error.t()}