ex_riak_cs v0.1.1 ExRiakCS.Object
This module contains object-level operations
More info at: http://docs.basho.com/riak/cs/2.1.1/references/apis/storage/#object-level-operations
Summary
Functions
Deletes an object and returns {:ok, nil} if request was successful, otherwise returns {:error, {response_code, response_body} }
Retrieves object metadata (not the full content of the object) and returns {:ok, headers} if request was successful, otherwise returns {:error, {response_code, response_body} }
Functions
Deletes an object and returns {:ok, nil} if request was successful, otherwise returns {:error, {response_code, response_body} }
Example
{:ok, _} = Object.delete("test-bucket", "key")
More info at: http://docs.basho.com/riak/cs/2.1.1/references/apis/storage/s3/delete-object/
Retrieves object metadata (not the full content of the object) and returns {:ok, headers} if request was successful, otherwise returns {:error, {response_code, response_body} }
Example
{:ok, headers} = Object.head("test-bucket", "key")
More info at: http://docs.basho.com/riak/cs/2.1.1/references/apis/storage/s3/head-object/