View Source DockerEngineAPI.Connection (testcontainers v1.11.6)

Handle Tesla connections for DockerEngineAPI.

Summary

Types

The list of options that can be passed to new/1.

Functions

Returns the default adapter for this API.

Returns fully configured middleware for passing to Tesla.client/2.

Configure a client that may have authentication.

Forward requests to Tesla.

Types

@type options() :: [base_url: String.t(), user_agent: String.t()]

The list of options that can be passed to new/1.

  • base_url: Overrides the base URL on a per-client basis.
  • user_agent: Overrides the User-Agent header.

Functions

Returns the default adapter for this API.

Link to this function

middleware(options \\ [])

View Source
@spec middleware(options()) :: [Tesla.Client.middleware()]

Returns fully configured middleware for passing to Tesla.client/2.

@spec new(options()) :: Tesla.Env.client()

Configure a client that may have authentication.

Parameters

  • options: a keyword list of OpenAPIPetstore.Connection.options.

Returns

Tesla.Env.client

Link to this function

request(client, options)

View Source
@spec request(Tesla.Client.t(), [Tesla.option()]) :: Tesla.Env.result()

Forward requests to Tesla.