Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

d3sw/nomex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Nomex

Unofficial HashiCorp Nomad Client for Elixir

This is an Elixir client for Nomad's web API found here: https://www.nomadproject.io/api/index.html

Before You Proceed

It should be noted that this library is a simple, thin wrapper around HTTPoison (for making requests) and Poison (for encoding/decoding JSON). I made this purely for convenience. If you need to interact with only a small subset of Nomad's API, I would consider rolling your own functions.

What Works?

As of now, all GET based JSON requests to Nomad should be working.

What Needs to be Implemented?

  1. non-GET based requests
  2. non-JSON GET requests (text/plain, streaming)
  3. Documentation
  4. Tests

Installation

def deps do
  [{:nomex, "~> 0.0.3"}]
end

Configuration

Currently there are two config variables. You should only need to change the nomad host:

In config/config.exs:

config :nomex, nomad_host: System.get_env("NOMAD_HOST") || "http://127.0.0.1:4646"
config :nomex, nomad_version: "v1"

Documentation

https://hexdocs.pm/nomex.

About

Unofficial Nomad Client for Elixir

Topics

Resources

License

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages