Miosa.OpenComputers.Tunnels (Miosa v1.0.1)

Copy Markdown View Source

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.

Get a specific tunnel.

List all tunnels for a host.

Update a tunnel (port, auth mode, enabled flag).

Types

result()

@type result() :: {:ok, map()} | {:error, Miosa.Error.t()}

Functions

create(client, host_id, attrs)

@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.

delete(client, host_id, tunnel_id)

@spec delete(Miosa.Client.t(), String.t(), String.t()) :: result()

Delete a tunnel.

get(client, host_id, tunnel_id)

@spec get(Miosa.Client.t(), String.t(), String.t()) :: result()

Get a specific tunnel.

list(client, host_id)

@spec list(Miosa.Client.t(), String.t()) :: result()

List all tunnels for a host.

update(client, host_id, tunnel_id, attrs)

@spec update(Miosa.Client.t(), String.t(), String.t(), map()) :: result()

Update a tunnel (port, auth mode, enabled flag).