Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayrat555/ex_riak_cs
Riak CS API wrapper for Elixir
https://github.com/ayrat555/ex_riak_cs
Last synced: about 2 months ago
JSON representation
Riak CS API wrapper for Elixir
- Host: GitHub
- URL: https://github.com/ayrat555/ex_riak_cs
- Owner: ayrat555
- Created: 2016-08-10T13:25:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-02T17:37:03.000Z (over 6 years ago)
- Last Synced: 2024-05-01T14:58:38.919Z (7 months ago)
- Language: Elixir
- Size: 24.4 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Riak CS API client. (Cloud Infrastructure and Management)
- fucking-awesome-elixir - ex_riak_cs - Riak CS API client. (Cloud Infrastructure and Management)
- awesome-elixir - ex_riak_cs - Riak CS API client. (Cloud Infrastructure and Management)
README
# ExRiakCs
ExRiakCs - simple elixir wrapper for [Riak CS API](http://docs.basho.com/riak/cs/2.1.1/references/apis/storage/)
NOTE: not all riak cs api methods are available, but new methods can be easily added (read Contributing section).
## Installation
The package can be installed as:
Add `ex_riak_cs` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:ex_riak_cs, "~> 0.1.1"}]
end
```## Documentation
https://hexdocs.pm/ex_riak_cs/api-reference.html
## Contributing
Start by forking this repo
Pull requests are greatly appreciated
New methods can be easily added. For example, if you want to add the [GET Object method](http://docs.basho.com/riak/cs/2.1.1/references/apis/storage/s3/get-object/), you should send get request using request method from the Request module, passing path to your object and then pattern match the result
```elixir
def get(bucket, key) do
path = "/#{bucket}/#{key}"
case Request.request(:get, path) do
...
end
end
```