The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Ceph::Rados - Perl wrapper to librados.

SYNOPSIS

use Ceph::Rados;

my $cluster = Ceph::Rados->new('admin');
$cluster->set_config_file;
$cluster->set_config_option( keyring => '/etc/ceph/ceph.client.admin.keyring');
$cluster->connect;

my $io = $cluster->io('testing_pool');
$io->write('greeting', 'hello');
my $stored_data = $io->read('greeting',10);
my ($len, $mtime) = $io->stat('greeting');
$io->delete('greeting');

my $list = $io->list;
while (my $entry = $list->next) {
    print "Found $entry\n";
}

DESCRIPTION

This module provides a very limited subset of the librados API, currently just read/write/stat and lists.

If no length is passed to the read() call, the object is first stat'd to determine the correct read length.

SEE ALSO

librados documentation - http://ceph.com/docs/master/rados/api/librados/

AUTHOR

Alex Bowley, <alex@openimp.net>

COPYRIGHT AND LICENSE

Copyright (C) 2014 by Alex Bowley.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.