1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Enterprise-specific workflows and helpers
//!
//! This module provides higher-level operations that compose Layer 1 calls
//! for Redis Enterprise.
//!
//! ## Overview
//!
//! Enterprise API has some async operations that return an `Action` which must be
//! polled for completion. This module provides:
//!
//! - `poll_action` - Generic action polling with progress callbacks
//! - `upgrade_database_and_wait` - Upgrade a database and wait for completion
//!
//! ## Example
//!
//! ```rust,ignore
//! use redisctl_core::enterprise::{poll_action, EnterpriseProgressEvent};
//! use std::time::Duration;
//!
//! let action = poll_action(
//! &client,
//! "action-uid",
//! Duration::from_secs(600),
//! Duration::from_secs(5),
//! Some(Box::new(|event| {
//! if let EnterpriseProgressEvent::Polling { progress, .. } = event {
//! println!("Progress: {:?}%", progress);
//! }
//! })),
//! ).await?;
//! ```
// Re-export key types for convenience
pub use ;
pub use ;