TestcontainerEx.Connection (testcontainer_ex v0.7.2)

Copy Markdown View Source

Builds an Req 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 an Req 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()) ::
  {Req.Request.t(), String.t(), String.t()} | {:error, String.t()}

Builds an Req client connected to the detected container engine.

Returns {conn, url, raw_url} where:

  • conn is a configured Req request struct
  • url is the base URL
  • raw_url is the original URL string