NomadClient.Connection (nomad_client v0.11.0)

Handle Tesla connections for NomadClient.

Link to this section Summary

Functions

Configure a client connection using Basic authentication.

Link to this section Functions

Link to this function

new(url \\ "http://localhost:4646/v1", token \\ nil)

Configure a client connection using Basic authentication.

Parameters

  • url (String): Nomad URL Endpoint (including /v1)
  • token (String): ACL Token

Returns

Tesla.Env.client

Link to this function

request(conn, request)

See Tesla.request/2.