Dagger.Changeset (dagger v0.19.4)

View Source

A comparison between two directories representing changes that can be applied.

Summary

Functions

Files and directories that were added in the newer directory.

The newer/upper snapshot.

Return a Git-compatible patch of the changes

The older/lower snapshot to compare against.

Returns true if the changeset is empty (i.e. there are no changes).

Applies the diff represented by this changeset to a path on the host.

A unique identifier for this Changeset.

Return a snapshot containing only the created and modified files

Files and directories that existed before and were updated in the newer directory.

Files and directories that were removed. Directories are indicated by a trailing slash, and their child paths are not included.

Force evaluation in the engine.

Types

t()

@type t() :: %Dagger.Changeset{client: term(), query_builder: term()}

Functions

added_paths(changeset)

@spec added_paths(t()) :: {:ok, [String.t()]} | {:error, term()}

Files and directories that were added in the newer directory.

after_(changeset)

@spec after_(t()) :: Dagger.Directory.t()

The newer/upper snapshot.

as_patch(changeset)

@spec as_patch(t()) :: Dagger.File.t()

Return a Git-compatible patch of the changes

before(changeset)

@spec before(t()) :: Dagger.Directory.t()

The older/lower snapshot to compare against.

empty?(changeset)

@spec empty?(t()) :: {:ok, boolean()} | {:error, term()}

Returns true if the changeset is empty (i.e. there are no changes).

export(changeset, path)

@spec export(t(), String.t()) :: {:ok, String.t()} | {:error, term()}

Applies the diff represented by this changeset to a path on the host.

id(changeset)

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

A unique identifier for this Changeset.

layer(changeset)

@spec layer(t()) :: Dagger.Directory.t()

Return a snapshot containing only the created and modified files

modified_paths(changeset)

@spec modified_paths(t()) :: {:ok, [String.t()]} | {:error, term()}

Files and directories that existed before and were updated in the newer directory.

removed_paths(changeset)

@spec removed_paths(t()) :: {:ok, [String.t()]} | {:error, term()}

Files and directories that were removed. Directories are indicated by a trailing slash, and their child paths are not included.

sync(changeset)

@spec sync(t()) :: {:ok, t()} | {:error, term()}

Force evaluation in the engine.