Struct rados_hi::Rados
[−]
[src]
pub struct Rados(pub rados_t);
A handle for interacting with a RADOS cluster.
It encapsulates all RADOS client configuration, including username, key for authentication, logging, and debugging. Talking different clusters -- or to the same cluster with different users -- requires different cluster handles.
Methods
impl Rados
[src]
fn connect(
config: &AsRef<Path>,
user: Option<&str>
) -> Result<Arc<Rados>, String>
config: &AsRef<Path>,
user: Option<&str>
) -> Result<Arc<Rados>, String>
fn pool_create(&self, pool_name: &str) -> Result<(), String>
Create a pool with default settings.
The default owner is the admin user (auid 0). The default crush rule is rule 0.
fn pool_delete(&self, pool_name: &str) -> Result<(), String>
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.