Current section

Files

Jump to
dagger lib dagger gen terminal.ex
Raw

lib/dagger/gen/terminal.ex

# This file generated by `mix dagger.gen`. Please DO NOT EDIT.
defmodule Dagger.Terminal do
@moduledoc "An interactive terminal that clients can connect to."
use Dagger.Core.QueryBuilder
@type t() :: %__MODULE__{}
defstruct [:selection, :client]
(
@doc "A unique identifier for this Terminal."
@spec id(t()) :: {:ok, Dagger.TerminalID.t()} | {:error, term()}
def id(%__MODULE__{} = terminal) do
selection = select(terminal.selection, "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, Dagger.String.t()} | {:error, term()}
def websocket_endpoint(%__MODULE__{} = terminal) do
selection = select(terminal.selection, "websocketEndpoint")
execute(selection, terminal.client)
end
)
end