View Source Dagger.File (dagger v0.11.2)
A file.
Link to this section Summary
Functions
Retrieves the contents of the file.
Writes the file to a file path on the host.
A unique identifier for this File.
Retrieves the name of the file.
Retrieves the size of the file, in bytes.
Force evaluation in the engine.
Retrieves this file with its created/modified timestamps set to the given time.
Link to this section Types
Link to this section Functions
Retrieves the contents of the file.
@spec export(t(), String.t(), [{:allow_parent_dir_path, boolean() | nil}]) :: {:ok, boolean()} | {:error, term()}
Writes the file to a file path on the host.
@spec id(t()) :: {:ok, Dagger.FileID.t()} | {:error, term()}
A unique identifier for this File.
Retrieves the name of the file.
Retrieves the size of the file, in bytes.
@spec sync(t()) :: {:ok, Dagger.FileID.t()} | {:error, term()}
Force evaluation in the engine.
Retrieves this file with its created/modified timestamps set to the given time.