View Source Dagger.Host (dagger v0.12.3)

Information about the host environment.

Summary

Functions

Accesses a directory on the host.

Accesses a file on the host.

A unique identifier for this Host.

Creates a service that forwards traffic to a specified address via the host.

Sets a secret given a user-defined name and the file path on the host, and returns the secret.

Creates a tunnel that forwards traffic from the host to a service.

Accesses a Unix socket on the host.

Types

@type t() :: %Dagger.Host{client: term(), selection: term()}

Functions

Link to this function

directory(host, path, optional_args \\ [])

View Source
@spec directory(t(), String.t(), exclude: [String.t()], include: [String.t()]) ::
  Dagger.Directory.t()

Accesses a directory on the host.

@spec file(t(), String.t()) :: Dagger.File.t()

Accesses a file on the host.

@spec id(t()) :: {:ok, Dagger.HostID.t()} | {:error, term()}

A unique identifier for this Host.

Link to this function

service(host, ports, optional_args \\ [])

View Source
@spec service(t(), [Dagger.PortForward.t()], [{:host, String.t() | nil}]) ::
  Dagger.Service.t()

Creates a service that forwards traffic to a specified address via the host.

Link to this function

set_secret_file(host, name, path)

View Source
@spec set_secret_file(t(), String.t(), String.t()) :: Dagger.Secret.t()

Sets a secret given a user-defined name and the file path on the host, and returns the secret.

The file is limited to a size of 512000 bytes.

Link to this function

tunnel(host, service, optional_args \\ [])

View Source
@spec tunnel(t(), Dagger.Service.t(),
  ports: [Dagger.PortForward.t()],
  native: boolean() | nil
) ::
  Dagger.Service.t()

Creates a tunnel that forwards traffic from the host to a service.

@spec unix_socket(t(), String.t()) :: Dagger.Socket.t()

Accesses a Unix socket on the host.