API calls for all endpoints tagged Port.
Summary
Functions
Get active ports Get a list of all currently active ports
Check if port is in use Check if a specific port is currently in use
Functions
@spec get_ports( Tesla.Env.client(), keyword() ) :: {:ok, ExDaytona.Model.PortList.t()} | {:error, Tesla.Env.t()}
Get active ports Get a list of all currently active ports
Parameters
connection(ExDaytona.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, ExDaytona.Model.PortList.t}on success{:error, Tesla.Env.t}on failure
@spec is_port_in_use(Tesla.Env.client(), integer(), keyword()) :: {:ok, ExDaytona.Model.ErrorResponse.t()} | {:ok, ExDaytona.Model.IsPortInUseResponse.t()} | {:error, Tesla.Env.t()}
Check if port is in use Check if a specific port is currently in use
Parameters
connection(ExDaytona.Connection): Connection to serverport(integer()): Port number (3000-9999)opts(keyword): Optional parameters
Returns
{:ok, ExDaytona.Model.IsPortInUseResponse.t}on success{:error, Tesla.Env.t}on failure