View Source Dagger.Host (dagger v0.8.7)

Information about the host execution environment.

Link to this section Summary

Functions

Accesses a directory on the host.

Accesses a file on the host.

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.

Accesses a Unix socket on the host.

Link to this section Types

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

Link to this section Functions

Link to this function

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

View Source
@spec directory(t(), Dagger.String.t(), keyword()) :: Dagger.Directory.t()

Accesses a directory on the host.

required-arguments

Required Arguments

  • path - Location of the directory to access (e.g., ".").

optional-arguments

Optional Arguments

  • exclude - Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
  • include - Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
@spec file(t(), Dagger.String.t()) :: Dagger.File.t()

Accesses a file on the host.

required-arguments

Required Arguments

  • path - Location of the file to retrieve (e.g., "README.md").
Link to this function

set_secret_file(host, name, path)

View Source
@spec set_secret_file(t(), Dagger.String.t(), Dagger.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.

required-arguments

Required Arguments

  • name - The user defined name for this secret.
  • path - Location of the file to set as a secret.
@spec unix_socket(t(), Dagger.String.t()) :: Dagger.Socket.t()

Accesses a Unix socket on the host.

required-arguments

Required Arguments

  • path - Location of the Unix socket (e.g., "/var/run/docker.sock").