Struct ceph::ceph::Rados[][src]

pub struct Rados { /* fields omitted */ }

Owns a rados handle

Methods

impl Rados
[src]

Disconnect from a Ceph cluster and destroy the connection handle rados_t For clean up, this is only necessary after connect_to_ceph() has succeeded.

Set the value of a configuration option

Get the value of a configuration option

Create an io context. The io context allows you to perform operations within a particular pool. For more details see rados_ioctx_t.

Create an io context. The io context allows you to perform operations within a particular pool. For more details see rados_ioctx_t.

impl Rados
[src]

Returns back a collection of Rados Pools

pool_buffer should be allocated with:

let capacity = 10;
let pool_buffer: Vec<u8> = Vec::with_capacity(capacity);

buf_size should be the value used with_capacity

Returns Ok(Vec) - A list of Strings of the pool names.

Create a pool with default settings The default owner is the admin user (auid 0). The default crush rule is rule 0.

Delete a pool and all data inside it The pool is removed from the cluster immediately, but the actual data is deleted in the background.

Lookup a Ceph pool id. If the pool doesn't exist it will return Ok(None).

impl Rados
[src]

Read usage info about the cluster This tells you total space, space used, space available, and number of objects. These are not updated immediately when data is written, they are eventually consistent. Note: Ceph uses kibibytes: https://en.wikipedia.org/wiki/Kibibyte

Ping a monitor to assess liveness May be used as a simply way to assess liveness, or to obtain information about the monitor in a simple way even in the absence of quorum.

impl Rados
[src]

Only single String value

string with the health HEALTH_OK or HEALTH_WARN or HEALTH_ERR which is also not efficient.

Returns an enum value of: CephHealth::Ok CephHealth::Warning CephHealth::Error

Higher level ceph_command

Returns the list of available commands

Mon command that does not pass in a data payload.

Mon command that does pass in a data payload. Most all of the commands pass through this function.

OSD command that does not pass in a data payload.

OSD command that does pass in a data payload.

PG command that does not pass in a data payload.

PG command that does pass in a data payload.

Trait Implementations

impl Sync for Rados
[src]

impl Drop for Rados
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for Rados