TestcontainerEx.Container.BuilderHelper (testcontainer_ex v0.1.0)

Copy Markdown View Source

Applies common labels and reuse logic to container configurations.

This is the bridge between raw container configs and the orchestration layer — it adds session labels, reuse hashes, and language metadata.

Summary

Functions

Builds a container config and applies orchestration labels.

Functions

build(builder, state)

@spec build(
  struct(),
  map()
) ::
  {:reuse, TestcontainerEx.Container.Config.t(), String.t()}
  | {:noreuse, TestcontainerEx.Container.Config.t(), nil}

Builds a container config and applies orchestration labels.

Returns {:reuse, config, hash} or {:noreuse, config, nil}.