WardrikWorkspace. Spec
(wardrik_workspace v0.1.0-rc.1)
Copy Markdown
What an agent's file tools reach.
:store- theWardrikStorethe files are kept in.:own- the agent's ownWardrikWorkspace.Mount.:shared- mounts shared with the agent, each undershared/<name>/.
Summary
Functions
Returns every mount the spec reaches, its own first.
Builds a spec from WardrikWorkspace's options: :store, :tree and :shared.
Returns the mount path is in and the path within its tree, or {:error, reason}.
Returns path as the agent sees it, prefixed with shared/<name>/ for a shared mount.
Types
@type t() :: %WardrikWorkspace.Spec{ own: WardrikWorkspace.Mount.t(), shared: [WardrikWorkspace.Mount.t()], store: WardrikStore.t() }
Functions
@spec mounts(t()) :: [WardrikWorkspace.Mount.t()]
Returns every mount the spec reaches, its own first.
Builds a spec from WardrikWorkspace's options: :store, :tree and :shared.
@spec resolve(t(), term()) :: {:ok, WardrikWorkspace.Mount.t(), String.t()} | {:error, String.t()}
Returns the mount path is in and the path within its tree, or {:error, reason}.
@spec shown(WardrikWorkspace.Mount.t(), String.t()) :: String.t()
Returns path as the agent sees it, prefixed with shared/<name>/ for a shared mount.