Expand description
Background Process Manager
Manages long-running background processes like kubectl port-forward.
Processes run asynchronously and can be started, stopped, and listed.
§Example
ⓘ
use syncable_cli::agent::tools::background::BackgroundProcessManager;
let manager = BackgroundProcessManager::new();
// Start a port-forward in the background
let port = manager.start_port_forward(
"prometheus",
"svc/prometheus-server",
"monitoring",
9090
).await?;
println!("Port-forward running on localhost:{}", port);
// Later, stop it
manager.stop("prometheus").await?;Structs§
- Background
Process Manager - Manages background processes like port-forwards.
- Process
Info - Information about a running background process.
Enums§
- Background
Process Error - Error type for background process operations.