0e5ee143b0
Use Bollard library to exec in pure Rust. `--use-cli` cli arg, will then only try to exec into containers using Docker. Only try to exec into a container if the state == Running.
20 lines
388 B
Rust
20 lines
388 B
Rust
use std::sync::Arc;
|
|
|
|
use crate::app_data::ContainerId;
|
|
use bollard::Docker;
|
|
use tokio::sync::oneshot::Sender;
|
|
|
|
#[derive(Debug)]
|
|
pub enum DockerMessage {
|
|
ConfirmDelete(ContainerId),
|
|
Delete(ContainerId),
|
|
Exec(Sender<Arc<Docker>>),
|
|
Pause(ContainerId),
|
|
Quit,
|
|
Restart(ContainerId),
|
|
Start(ContainerId),
|
|
Stop(ContainerId),
|
|
Unpause(ContainerId),
|
|
Update,
|
|
}
|