0.9
No commit activity in last 3 years
No release in over 3 years
Fog backend for provisioning users on Ceph Radosgw - the Swift and S3 compatible REST API for Ceph.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

>= 1.21.0
>= 0.0.1
 Project Readme

Fog::Radosgw

Gem Version Build Status Dependency Status Coverage Status Code Climate Stories in Ready

Fog backend for provisioning Ceph Radosgw - the Swift and S3 compatible REST API for Ceph. Currently, the gem only supports the S3 API, not Swift.

Based on the Riak CS backend.

Installation

Add this line to your application's Gemfile:

gem 'fog-radosgw'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fog-radosgw

Usage

Example:

require 'fog/radosgw'

provision_client =  Fog::Radosgw::Provisioning.new(
    host:    'objects.example.com',
    radosgw_access_key_id:     'CHIA1GEE0EIJ9OHSAIK6',
    radosgw_secret_access_key: 'IFooJ7airaebaele6baihaiw2fequuto9Foh7Sei'
)

response = provision_client.create_user('fog', 'Fog User', 'fog@example.com')
userkey    = response.body['keys'][0]['access_key']
usersecret = response.body['keys'][0]['secret_key']

Tests

Mock tests:

bundle exec rake mock[radosgw]

Live tests:

bundle exec rake live[radosgw]

To run live tests, you have to place credentials in tests/.fog, e.g.:

default:
    host:    objects.example.com
    radosgw_access_key_id:     CHIA1GEE0EIJ9OHSAIK6
    radosgw_secret_access_key: IFooJ7airaebaele6baihaiw2fequuto9Foh7Sei

Contributing

Please refer to the CONTRIBUTING.md page for the main Fog project.

License

Please refer to LICENSE.md.