Dagger.Directory (dagger v0.18.4)
View SourceA directory.
Summary
Functions
Converts this directory to a local git repository
Load the directory as a Dagger module source
Load the directory as a Dagger module source
Return the difference between this directory and an another directory. The difference is encoded as a directory.
Return the directory's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
Retrieves a directory at the given path.
Use Dockerfile compatibility to build a container from this directory. Only use this function for Dockerfile compatibility. Otherwise use the native Container type directly, it is feature-complete and supports all Dockerfile features.
Returns a list of files and directories at the given path.
Writes the contents of the directory to a path on the host.
Retrieve a file at the given path.
Return a snapshot with some paths included or excluded
Returns a list of files and directories that matche the given pattern.
A unique identifier for this Directory.
Returns the name of the directory.
Force evaluation in the engine.
Opens an interactive terminal in new container with this directory mounted inside.
Return a snapshot with a directory added
Retrieves this directory plus the contents of the given file copied to the given path.
Retrieves this directory plus the contents of the given files copied to the given path.
Retrieves this directory plus a new directory created at the given path.
Return a snapshot with a new file added
Retrieves this directory with all file/dir timestamps set to the given time.
Return a snapshot with a subdirectory removed
Return a snapshot with a file removed
Return a snapshot with files removed
Types
Functions
@spec as_git(t()) :: Dagger.GitRepository.t()
Converts this directory to a local git repository
@spec as_module(t(), [{:source_root_path, String.t() | nil}]) :: Dagger.Module.t()
Load the directory as a Dagger module source
@spec as_module_source(t(), [{:source_root_path, String.t() | nil}]) :: Dagger.ModuleSource.t()
Load the directory as a Dagger module source
Return the difference between this directory and an another directory. The difference is encoded as a directory.
Return the directory's digest. The format of the digest is not guaranteed to be stable between releases of Dagger. It is guaranteed to be stable between invocations of the same Dagger engine.
Retrieves a directory at the given path.
@spec docker_build(t(), platform: Dagger.Platform.t() | nil, dockerfile: String.t() | nil, target: String.t() | nil, build_args: [Dagger.BuildArg.t()], secrets: [Dagger.SecretID.t()], no_init: boolean() | nil ) :: Dagger.Container.t()
Use Dockerfile compatibility to build a container from this directory. Only use this function for Dockerfile compatibility. Otherwise use the native Container type directly, it is feature-complete and supports all Dockerfile features.
Returns a list of files and directories at the given path.
Writes the contents of the directory to a path on the host.
@spec file(t(), String.t()) :: Dagger.File.t()
Retrieve a file at the given path.
Return a snapshot with some paths included or excluded
Returns a list of files and directories that matche the given pattern.
@spec id(t()) :: {:ok, Dagger.DirectoryID.t()} | {:error, term()}
A unique identifier for this Directory.
Returns the name of the directory.
Force evaluation in the engine.
@spec terminal(t(), cmd: [String.t()], experimental_privileged_nesting: boolean() | nil, insecure_root_capabilities: boolean() | nil, container: Dagger.ContainerID.t() | nil ) :: t()
Opens an interactive terminal in new container with this directory mounted inside.
Return a snapshot with a directory added
@spec with_file(t(), String.t(), Dagger.File.t(), [{:permissions, integer() | nil}]) :: t()
Retrieves this directory plus the contents of the given file copied to the given path.
@spec with_files(t(), String.t(), [Dagger.FileID.t()], [ {:permissions, integer() | nil} ]) :: t()
Retrieves this directory plus the contents of the given files copied to the given path.
Retrieves this directory plus a new directory created at the given path.
Return a snapshot with a new file added
Retrieves this directory with all file/dir timestamps set to the given time.
Return a snapshot with a subdirectory removed
Return a snapshot with a file removed
Return a snapshot with files removed