View Source Dagger.GitModuleSource (dagger v0.9.11)

Module source originating from a git repo.

Link to this section Summary

Functions

The URL from which the source's git repo can be cloned.

The resolved commit of the git repo this source points to.

The directory containing everything needed to load load and use the module.

The URL to the source's git repo in a web browser

A unique identifier for this GitModuleSource.

The path to the root of the module source under the context directory. This directory contains its configuration file. It also contains its source code (possibly as a subdirectory).

The specified version of the git repo this source points to.

Link to this section Types

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

Link to this section Functions

Link to this function

clone_url(git_module_source)

View Source
@spec clone_url(t()) :: {:ok, Dagger.String.t()} | {:error, term()}

The URL from which the source's git repo can be cloned.

Link to this function

commit(git_module_source)

View Source
@spec commit(t()) :: {:ok, Dagger.String.t()} | {:error, term()}

The resolved commit of the git repo this source points to.

Link to this function

context_directory(git_module_source)

View Source
@spec context_directory(t()) :: Dagger.Directory.t()

The directory containing everything needed to load load and use the module.

Link to this function

html_url(git_module_source)

View Source
@spec html_url(t()) :: {:ok, Dagger.String.t()} | {:error, term()}

The URL to the source's git repo in a web browser

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

A unique identifier for this GitModuleSource.

Link to this function

root_subpath(git_module_source)

View Source
@spec root_subpath(t()) :: {:ok, Dagger.String.t()} | {:error, term()}

The path to the root of the module source under the context directory. This directory contains its configuration file. It also contains its source code (possibly as a subdirectory).

Link to this function

version(git_module_source)

View Source
@spec version(t()) :: {:ok, Dagger.String.t()} | {:error, term()}

The specified version of the git repo this source points to.