Dagger.Host (dagger v0.19.4)
View SourceInformation about the host environment.
Summary
Functions
Accesses a container image on the host.
Accesses a directory on the host.
Accesses a file on the host.
Search for a file or directory by walking up the tree from system workdir. Return its relative path. If no match, return null
A unique identifier for this Host.
Creates a service that forwards traffic to a specified address via the host.
Creates a tunnel that forwards traffic from the host to a service.
Accesses a Unix socket on the host.
Types
Functions
@spec container_image(t(), String.t()) :: Dagger.Container.t()
Accesses a container image on the host.
@spec directory(t(), String.t(), exclude: [String.t()], include: [String.t()], no_cache: boolean() | nil, gitignore: boolean() | nil ) :: Dagger.Directory.t()
Accesses a directory on the host.
@spec file(t(), String.t(), [{:no_cache, boolean() | nil}]) :: Dagger.File.t()
Accesses a file on the host.
@spec find_up(t(), String.t(), [{:no_cache, boolean() | nil}]) :: {:ok, String.t() | nil} | {:error, term()}
Search for a file or directory by walking up the tree from system workdir. Return its relative path. If no match, return null
@spec id(t()) :: {:ok, Dagger.HostID.t()} | {:error, term()}
A unique identifier for this Host.
@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.
@spec tunnel(t(), Dagger.Service.t(), native: boolean() | nil, ports: [Dagger.PortForward.t()] ) :: 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.