Current section

Files

Jump to
dagger lib dagger gen terminal.ex
Raw

lib/dagger/gen/terminal.ex

# This file generated by `dagger_codegen`. Please DO NOT EDIT.
defmodule Dagger.Terminal do
@moduledoc "An interactive terminal that clients can connect to."
use Dagger.Core.QueryBuilder
@derive Dagger.ID
defstruct [:selection, :client]
@type t() :: %__MODULE__{}
@doc "A unique identifier for this Terminal."
@spec id(t()) :: {:ok, Dagger.TerminalID.t()} | {:error, term()}
def id(%__MODULE__{} = terminal) do
selection =
terminal.selection |> select("id")
execute(selection, terminal.client)
end
@doc "An http endpoint at which this terminal can be connected to over a websocket."
@spec websocket_endpoint(t()) :: {:ok, String.t()} | {:error, term()}
def websocket_endpoint(%__MODULE__{} = terminal) do
selection =
terminal.selection |> select("websocketEndpoint")
execute(selection, terminal.client)
end
end