Dagger.ModuleSource (dagger v0.18.3)
View SourceThe source needed to load and run a module, along with any metadata about the source such as versions/urls/etc.
Summary
Functions
Load the source as a module. If this is a local source, the parent directory must have been provided during module source creation
A human readable ref string representation of this module source.
The ref to clone the root of the git repo from. Only valid for git sources.
The resolved commit of the git repo this source points to.
The clients generated for the module.
Whether an existing dagger.json for the module was found.
The full directory loaded for the module source, including the source code as a subdirectory.
The dependencies of the module source.
A content-hash of the module source. Module sources with the same digest will output the same generated context and convert into the same module instance.
The directory containing the module configuration and source code (source code may be in a subdir).
The engine version of the module.
The generated files and directories made on top of the module source's context directory.
The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket).
The URL to the source's git repo in a web browser. Only valid for git sources.
A unique identifier for this ModuleSource.
The kind of module source (currently local, git or dir).
The full absolute path to the context directory on the caller's host filesystem that this module source is loaded from. Only valid for local module sources.
The name of the module, including any setting via the withName API.
The original name of the module as read from the module's dagger.json (or set for the first time with the withName API).
The original subpath used when instantiating this module source, relative to the context directory.
The pinned version of this module source.
The import path corresponding to the root of the git repo this source points to. Only valid for git sources.
The SDK configuration of the module.
The path, relative to the context directory, that contains the module's dagger.json.
The path to the directory containing the module's source code, relative to the context directory.
Forces evaluation of the module source, including any loading into the engine and associated validation.
The specified version of the git repo this source points to.
Update the module source with a new client to generate.
Append the provided dependencies to the module source's dependency list.
Upgrade the engine version of the module to the given value.
Update the module source with additional include patterns for files+directories from its context that are required for building it
Update the module source with a new name.
Update the module source with a new SDK.
Update the module source with a new source subpath.
Update one or more module dependencies.
Remove the provided dependencies from the module source's dependency list.
Types
Functions
@spec as_module(t()) :: Dagger.Module.t()
Load the source as a module. If this is a local source, the parent directory must have been provided during module source creation
A human readable ref string representation of this module source.
The ref to clone the root of the git repo from. Only valid for git sources.
The resolved commit of the git repo this source points to.
@spec config_clients(t()) :: {:ok, [Dagger.ModuleConfigClient.t()]} | {:error, term()}
The clients generated for the module.
Whether an existing dagger.json for the module was found.
@spec context_directory(t()) :: Dagger.Directory.t()
The full directory loaded for the module source, including the source code as a subdirectory.
The dependencies of the module source.
A content-hash of the module source. Module sources with the same digest will output the same generated context and convert into the same module instance.
@spec directory(t(), String.t()) :: Dagger.Directory.t()
The directory containing the module configuration and source code (source code may be in a subdir).
The engine version of the module.
@spec generated_context_directory(t()) :: Dagger.Directory.t()
The generated files and directories made on top of the module source's context directory.
The URL to access the web view of the repository (e.g., GitHub, GitLab, Bitbucket).
The URL to the source's git repo in a web browser. Only valid for git sources.
@spec id(t()) :: {:ok, Dagger.ModuleSourceID.t()} | {:error, term()}
A unique identifier for this ModuleSource.
@spec kind(t()) :: {:ok, Dagger.ModuleSourceKind.t()} | {:error, term()}
The kind of module source (currently local, git or dir).
The full absolute path to the context directory on the caller's host filesystem that this module source is loaded from. Only valid for local module sources.
The name of the module, including any setting via the withName API.
The original name of the module as read from the module's dagger.json (or set for the first time with the withName API).
The original subpath used when instantiating this module source, relative to the context directory.
The pinned version of this module source.
The import path corresponding to the root of the git repo this source points to. Only valid for git sources.
@spec sdk(t()) :: Dagger.SDKConfig.t() | nil
The SDK configuration of the module.
The path, relative to the context directory, that contains the module's dagger.json.
The path to the directory containing the module's source code, relative to the context directory.
Forces evaluation of the module source, including any loading into the engine and associated validation.
The specified version of the git repo this source points to.
Update the module source with a new client to generate.
@spec with_dependencies(t(), [Dagger.ModuleSourceID.t()]) :: t()
Append the provided dependencies to the module source's dependency list.
Upgrade the engine version of the module to the given value.
Update the module source with additional include patterns for files+directories from its context that are required for building it
Update the module source with a new name.
Update the module source with a new SDK.
Update the module source with a new source subpath.
Update one or more module dependencies.
Remove the provided dependencies from the module source's dependency list.