HTTP tunnel management for registered hosts.
Tunnels expose a local port on the host over a MIOSA-managed public URL.
Summary
Functions
Create an HTTP tunnel exposing a local port on the host.
Delete a tunnel.
Get a specific tunnel.
List all tunnels for a host.
Update a tunnel (port, auth mode, enabled flag).
Types
@type result() :: {:ok, map()} | {:error, Miosa.Error.t()}
Functions
@spec create(Miosa.Client.t(), String.t(), map()) :: result()
Create an HTTP tunnel exposing a local port on the host.
attrs must include :target_port. Optional: :auth_mode, :slug.
@spec delete(Miosa.Client.t(), String.t(), String.t()) :: result()
Delete a tunnel.
@spec get(Miosa.Client.t(), String.t(), String.t()) :: result()
Get a specific tunnel.
@spec list(Miosa.Client.t(), String.t()) :: result()
List all tunnels for a host.
@spec update(Miosa.Client.t(), String.t(), String.t(), map()) :: result()
Update a tunnel (port, auth mode, enabled flag).