API calls for all endpoints tagged Preview.
Summary
Functions
Get sandbox ID from signed preview URL token
Get the signing key for a sandbox
Check if user has access to the sandbox
Check if the preview warning page is enabled for the sandbox
Check if sandbox is public
Check if sandbox auth token is valid
Functions
@spec get_sandbox_id_from_signed_preview_url_token( Tesla.Env.client(), String.t(), number(), keyword() ) :: {:ok, String.t()} | {:error, Tesla.Env.t()}
Get sandbox ID from signed preview URL token
Parameters
connection(ExDaytona.Connection): Connection to serversigned_preview_token(String.t): Signed preview URL tokenport(number()): Port number to get sandbox ID from signed preview URL tokenopts(keyword): Optional parameters
Returns
{:ok, String.t}on success{:error, Tesla.Env.t}on failure
@spec get_signing_key(Tesla.Env.client(), String.t(), keyword()) :: {:ok, String.t()} | {:error, Tesla.Env.t()}
Get the signing key for a sandbox
Parameters
connection(ExDaytona.Connection): Connection to serversandbox_id(String.t): ID of the sandboxopts(keyword): Optional parameters
Returns
{:ok, String.t}on success{:error, Tesla.Env.t}on failure
@spec has_sandbox_access(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:ok, boolean()} | {:error, Tesla.Env.t()}
Check if user has access to the sandbox
Parameters
connection(ExDaytona.Connection): Connection to serversandbox_id(String.t):opts(keyword): Optional parameters
Returns
{:ok, boolean()}on success{:error, Tesla.Env.t}on failure
@spec is_preview_warning_enabled(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExDaytona.Model.PreviewWarning.t()} | {:error, Tesla.Env.t()}
Check if the preview warning page is enabled for the sandbox
Parameters
connection(ExDaytona.Connection): Connection to serversandbox_id(String.t): ID of the sandbox, or a signed preview URL token (requires the port query param)opts(keyword): Optional parameters:port(number()): Port the signed preview URL token was issued for. Required when sandboxId is a signed token.
Returns
{:ok, ExDaytona.Model.PreviewWarning.t}on success{:error, Tesla.Env.t}on failure
@spec is_sandbox_public(Tesla.Env.client(), String.t(), keyword()) :: {:ok, boolean()} | {:error, Tesla.Env.t()}
Check if sandbox is public
Parameters
connection(ExDaytona.Connection): Connection to serversandbox_id(String.t): ID of the sandboxopts(keyword): Optional parameters
Returns
{:ok, boolean()}on success{:error, Tesla.Env.t}on failure
@spec is_valid_auth_token(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, boolean()} | {:error, Tesla.Env.t()}
Check if sandbox auth token is valid
Parameters
connection(ExDaytona.Connection): Connection to serversandbox_id(String.t): ID of the sandboxauth_token(String.t): Auth token of the sandboxopts(keyword): Optional parameters
Returns
{:ok, boolean()}on success{:error, Tesla.Env.t}on failure