https://github.com/zweifisch/openstack.ex
openstack client for elixir
https://github.com/zweifisch/openstack.ex
Last synced: 4 months ago
JSON representation
openstack client for elixir
- Host: GitHub
- URL: https://github.com/zweifisch/openstack.ex
- Owner: zweifisch
- License: mit
- Created: 2015-12-13T03:46:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-05T01:43:48.000Z (almost 9 years ago)
- Last Synced: 2024-09-16T17:44:07.301Z (8 months ago)
- Language: Elixir
- Size: 26.4 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Openstack
[![hex][hex-image]][hex-url]
Openstack Client for Elixir
## Installation
First, add openstack to your dependencies in `mix.exs`:
def deps do
[{:openstack, "~> 0.0.3"}]
endThen, update your dependencies:
$ mix deps.get
## Usage
result = Openstack.authenticate("http://keystone/v3",
"admin", "password", "admin", "Default")
case result do
{:ok, token} -> Neutron.network_list(token, "RegionOne", limit: 2)
end## Macro
defmodule Mymodule do
import Openstack, only: :macros
defresource "server", "compute", "/servers", "server"
defresource "server", "compute", "/servers",
{"server", "servers"},
only: [:list, :show],
action: [:post, "/:id/action"]
end[hex-image]: https://img.shields.io/hexpm/v/openstack.svg?style=flat
[hex-url]: https://hex.pm/packages/openstack