Struct ceph::CephClient[][src]

pub struct CephClient { /* fields omitted */ }

A CephClient is a struct that handles communicating with Ceph in a nicer, Rustier way

let client = CephClient::new("admin", "/etc/ceph/ceph.conf")?;
let tree = client.osd_tree()?;

Methods

impl CephClient
[src]

Query a ceph pool.

Set a pool value

Can be used to set options on an OSD

let client = CephClient::new("admin", "/etc/ceph/ceph.conf")?;
client.osd_set(OsdOption::NoDown, false)?;

Can be used to unset options on an OSD

let client = CephClient::new("admin", "/etc/ceph/ceph.conf")?;
client.osd_unset(OsdOption::NoDown)?;

Get cluster status

List all the monitors in the cluster and their current rank

Get the mon quorum

Show mon daemon version

Get a ceph-x key. The id parameter can be either a number or a string depending on the type of client so I went with string.

add or update crushmap position and weight for an osd

Auto Trait Implementations

impl !Send for CephClient

impl Sync for CephClient