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]

[src]

[src]

[src]

[src]

[src]

Query a ceph pool.

[src]

Set a pool value

[src]

Can be used to set options on an OSD

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

[src]

Can be used to unset options on an OSD

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

[src]

[src]

Get cluster status

[src]

List all the monitors in the cluster and their current rank

[src]

Get the mon quorum

[src]

Show mon daemon version

[src]

[src]

[src]

[src]

[src]

[src]

[src]

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.

[src]

add or update crushmap position and weight for an osd

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Drop for CephClient
[src]

[src]

Executes the destructor for this type. Read more