Ceph::RadosGW::Admin - Bindings for the rados gateway admin api.
version 0.1
my $admin = Ceph::RadosGW::Admin->new(
access_key => 'not really secret',
secret_key => 'actually secret',
url => 'https://your.rados.gateway.com/',
);
my $user = $admin->create_user(
uid => 'myusername',
display_name => 'my user name',
);
# they're really evil, suspending them should be enough
$user->suspended(1);
$user->save;
# nah, they're really evil
$user->delete;
my $otheruser = $admin->get_user(uid => 'other');
my @keys = $otheruser->keys();
my @keys_plus_one = $otheruser->create_key();
$otheruser->delete_key(access_key => $keys[0]->{access_key});
my @buckets = $otheruser->get_bucket_info();
This module provides an interface the Admin OPs interface of a ceph rados gateway. It is at this time incomplete, with only the parts needed by the authors implemented.
The docs are pretty middling at the moment.
This module has only been tested against the Dumpling release of ceph.
Chris Reinhardt
crein@cpan.org
Mark Ng
cpan@markng.co.uk
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl(1)