Current section

Files

Jump to
testcontainers lib container protocols container_builder.ex
Raw

lib/container/protocols/container_builder.ex

defprotocol Testcontainers.ContainerBuilder do
@moduledoc """
All types of predefined containers must implement this protocol.
"""
@spec build(t()) :: Testcontainers.Container.t()
def build(builder)
@doc """
Do stuff after container has started.
"""
@spec after_start(t(), Testcontainers.Container.t(), Tesla.Env.t()) :: :ok | {:error, term()}
def after_start(builder, container, connection)
end