View Source Dagger.LocalModuleSource (dagger v0.15.1)

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

t()

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

Functions

context_directory(local_module_source)

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

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

id(local_module_source)

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

A unique identifier for this LocalModuleSource.

rel_host_path(local_module_source)

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

The relative path to the module root from the host directory

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