TestcontainerEx.Connection (testcontainer_ex v0.1.0)

Copy Markdown View Source

Builds a Tesla client connected to the container engine.

Composes URL resolution, SSL configuration, and HTTP client setup.

Summary

Functions

Builds SSL options for TLS-secured connections. Delegates to TestcontainerEx.Connection.Ssl.

Builds a Tesla client connected to the detected container engine.

Functions

build_ssl_options()

@spec build_ssl_options() :: keyword()

Builds SSL options for TLS-secured connections. Delegates to TestcontainerEx.Connection.Ssl.

get_connection(options \\ [])

@spec get_connection(keyword()) :: {Tesla.Env.client(), String.t(), String.t()}

Builds a Tesla client connected to the detected container engine.

Returns {conn, url, raw_url} where:

  • conn is a configured Tesla client
  • url is the Tesla-compatible base URL
  • raw_url is the original URL string