pub struct ClusterHandler { /* private fields */ }
Expand description
Cluster handler for executing cluster commands
Implementations§
Source§impl ClusterHandler
impl ClusterHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn info(&self) -> Result<ClusterInfo>
pub async fn info(&self) -> Result<ClusterInfo>
Get cluster information (CLUSTER.INFO)
Sourcepub async fn bootstrap(&self, request: BootstrapRequest) -> Result<Value>
pub async fn bootstrap(&self, request: BootstrapRequest) -> Result<Value>
Bootstrap a new cluster (CLUSTER.BOOTSTRAP)
Sourcepub async fn update(&self, updates: Value) -> Result<Value>
pub async fn update(&self, updates: Value) -> Result<Value>
Update cluster configuration (CLUSTER.UPDATE)
Sourcepub async fn license(&self) -> Result<LicenseInfo>
pub async fn license(&self) -> Result<LicenseInfo>
Get cluster license (CLUSTER.LICENSE)
Sourcepub async fn join_node(
&self,
node_address: &str,
username: &str,
password: &str,
) -> Result<Value>
pub async fn join_node( &self, node_address: &str, username: &str, password: &str, ) -> Result<Value>
Join node to cluster (CLUSTER.JOIN)
Sourcepub async fn remove_node(&self, node_uid: u32) -> Result<Value>
pub async fn remove_node(&self, node_uid: u32) -> Result<Value>
Remove node from cluster (CLUSTER.REMOVE_NODE)
Auto Trait Implementations§
impl Freeze for ClusterHandler
impl !RefUnwindSafe for ClusterHandler
impl Send for ClusterHandler
impl Sync for ClusterHandler
impl Unpin for ClusterHandler
impl !UnwindSafe for ClusterHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more