NervesGate.Remote.Adapter behaviour (nerves_gate v0.1.0)

Copy Markdown

Tailscale infrastructure boundary. Snapshot and enrollment URL reads must use cached observations; execute may block and is run in an owned, bounded worker. Stopping a worker cannot undo an already accepted daemon mutation.

Summary

Callbacks

execute(atom, map, term)

@callback execute(atom(), map(), term()) :: :ok | {:ok, String.t()} | {:error, term()}

login_url(term)

@callback login_url(term()) :: String.t() | nil

observations(term)

(optional)
@callback observations(term()) :: [{atom(), [String.t()]}]

snapshot(term)

@callback snapshot(term()) :: map()

Functions

execute(arg, operation, params)

login_url(arg)

snapshot(arg)