View Source Dagger.LocalModuleSource (dagger v0.10.0)

Module source that that originates from a path locally relative to an arbitrary directory.

Link to this section Summary

Functions

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

A unique identifier for this LocalModuleSource.

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 section Types

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

Link to this section Functions

Link to this function

context_directory(local_module_source)

View Source
@spec context_directory(t()) :: {:ok, Dagger.Directory.t() | nil} | {:error, term()}

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

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

A unique identifier for this LocalModuleSource.

Link to this function

root_subpath(local_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).