nomex v0.0.4 Nomex

Base module for Nomex, used to access Nomad settings

Link to this section Summary

Functions

returns Nomad host, configurable in config/config.exs

returns Nomad ACL token if it is specified in config/config.exs

Example

returns Nomad API version

Example

Link to this section Functions

returns Nomad host, configurable in config/config.exs

Example

iex> Nomex.host
"http://127.0.0.1:4646"
Link to this macro meta_moduledoc(name, urls \\ []) (macro)
Link to this function token()
token() :: String.t()

returns Nomad ACL token if it is specified in config/config.exs

Example

iex> Nomex.token
"936a095f-68da-c19a-0a65-4794b0ea74e5"
Link to this function version()
version() :: String.t()

returns Nomad API version

Example

iex> Nomex.version
"v1"