#![cfg_attr(docsrs, feature(doc_cfg))]
pub const LATEST_API_VERSION: ApiVersion = ApiVersion::new(1, Some(42), None);
macro_rules! version {
() => {
"v1.42"
};
}
#[macro_use]
mod builder;
pub mod api;
pub mod models;
mod stream;
pub mod conn {
pub(crate) use containers_api::conn::*;
pub use containers_api::conn::{Error, Transport, TtyChunk};
}
pub mod docker;
pub mod errors;
pub mod opts;
pub use containers_api::id::Id;
pub use containers_api::version::ApiVersion;
pub use crate::{
api::{
container::{self, Container, Containers},
exec::{self, Exec},
image::{self, Image, Images},
network::{self, Network, Networks},
volume::{self, Volume, Volumes},
},
docker::Docker,
errors::{Error, Result},
};
#[cfg(feature = "swarm")]
#[cfg_attr(docsrs, doc(cfg(feature = "swarm")))]
pub use crate::api::{
config::{self, Config, Configs},
node::{self, Node, Nodes},
plugin::{self, Plugin, Plugins},
secret::{self, Secret, Secrets},
service::{self, Service, Services},
swarm::{self, Swarm},
task::{self, Task, Tasks},
};