View Source Dagger.LocalModuleSource (dagger v0.14.0)

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 relative path to the module root from the host directory

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(), query_builder: 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

rel_host_path(local_module_source)

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

The relative path to the module root from the host directory

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