Incant. Service. Session
(incant v0.1.0)
Copy Markdown
Admin UI session for one discovered Incant service entry.
A session wraps %Incant.Service.Entry{} and exposes admin-shaped operations
without leaking SafeRPC operation tuples or Incant service request structs into
LiveView/rendering code.
Summary
Functions
Returns the loaded transport-safe admin contract.
Fetches a surface by id from the loaded contract.
Indexes a remote resource surface.
Lists all surfaces from the loaded contract.
Builds a session for a discovered service entry.
Reads one remote resource item.
Runs an action on a remote resource surface.
Runs a remote dashboard widget query.
Types
@type surface() :: map()
@type t() :: %Incant.Service.Session{context: map(), entry: Incant.Service.Entry.t()}
Functions
@spec contract(t()) :: Incant.Admin.Contract.t()
Returns the loaded transport-safe admin contract.
Fetches a surface by id from the loaded contract.
Indexes a remote resource surface.
Lists all surfaces from the loaded contract.
@spec new( Incant.Service.Entry.t(), keyword() ) :: t()
Builds a session for a discovered service entry.
Reads one remote resource item.
@spec run_action( t(), String.t() | atom(), String.t() | atom(), map(), map(), keyword() ) :: {:ok, Incant.ActionResult.t()} | {:error, term()}
Runs an action on a remote resource surface.
@spec run_widget( t(), String.t() | atom(), String.t() | atom(), map(), map(), keyword() ) :: {:ok, term()} | {:error, term()}
Runs a remote dashboard widget query.