https://github.com/fog/fog-radosgw
https://github.com/fog/fog-radosgw
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/fog/fog-radosgw
- Owner: fog
- License: mit
- Created: 2014-09-15T19:31:17.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-01-10T09:46:45.000Z (over 10 years ago)
- Last Synced: 2025-05-08T11:01:49.305Z (about 1 year ago)
- Language: Ruby
- Size: 23.4 KB
- Stars: 5
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Fog::Radosgw
[](http://badge.fury.io/rb/fog-radosgw) [](https://travis-ci.org/fog/fog-radosgw) [](https://gemnasium.com/fog/fog-radosgw) [](https://coveralls.io/r/fog/fog-radosgw) [](https://codeclimate.com/github/fog/fog-radosgw) [](https://waffle.io/fog/fog-radosgw)
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](https://github.com/fog/fog/blob/master/CONTRIBUTING.md)
page for the main Fog project.
## License
Please refer to [LICENSE.md](https://github.com/fog/fog-radosgw/blob/master/LICENSE.md).