Skip to main content

opendev_docker/
lib.rs

1//! Docker runtime system for opendev.
2//!
3//! This crate provides container lifecycle management, command execution,
4//! file operations, and tool handling inside Docker containers. It mirrors
5//! the Python `opendev.core.docker` package, using `tokio::process::Command`
6//! to shell out to the Docker CLI.
7
8pub mod deployment;
9pub mod errors;
10pub mod local_runtime;
11pub mod models;
12pub mod remote_runtime;
13pub mod session;
14pub mod tool_handler;
15
16// Re-exports for convenience.
17pub use deployment::DockerDeployment;
18pub use errors::{DockerError, Result};
19pub use local_runtime::LocalRuntime;
20pub use models::{
21    BashAction, BashObservation, CheckMode, ContainerSpec, ContainerStatus, DockerConfig,
22    PortMapping, RuntimeType, ToolResult, VolumeMount,
23};
24pub use remote_runtime::RemoteRuntime;
25pub use session::DockerSession;
26pub use tool_handler::DockerToolHandler;