View Source Dagger.LocalModuleSource (dagger v0.12.3)

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

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).

Types

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

Functions

Link to this function

context_directory(local_module_source)

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

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, 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).