CloudAPI in Elixir using Ecto, Poison and HTTPoison
This library implements the full Joyent Triton CloudAPI for managing Triton Datacenters in Elixir, Ecto, Poison and HTTPoison.
Installation
If available in Hex, the package can be installed
by adding cloudapi to your list of dependencies in mix.exs:
def deps do
[
{:cloudapi, "~> 0.0.4"}
]
endConfiguration
Configure API credentials:
config :cloudapi,
endpoint: "https://adminui.your.triton.cluster",
account: "admin",
keyname: "what appears in the operator portal as 'name' for your key",
keyfile: "/home/myuser/.ssh/id_rsa"Todo
- add test cases
-
rewrite the HTTP Signature generation in
lib/client.exto pure Elixir without resorting to using OpenSSL. -
implement
Ecto.Changesetfor record validation/sanitization.
Pull requests are welcome. :)
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/cloudapi.