TestcontainerEx.Container.Builder protocol (testcontainer_ex v0.1.0)

Copy Markdown View Source

Protocol for building container configurations from domain-specific container types (e.g. RedisContainer, PostgresContainer).

Implementations transform a domain struct into a Container.Config with appropriate image, ports, wait strategies, etc.

Summary

Types

t()

All the types that implement this protocol.

Functions

Hook called after the container has started successfully. Use for post-start validation or configuration.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

after_start(builder, container, connection)

@spec after_start(t(), TestcontainerEx.Container.Config.t(), Tesla.Env.t()) ::
  :ok | {:error, term()}

Hook called after the container has started successfully. Use for post-start validation or configuration.

build(builder)