pub trait DockerApi {
// Required methods
fn version(&self) -> Box<dyn Future<Item = Version, Error = Error> + Send>;
fn info(&self) -> Box<dyn Future<Item = Info, Error = Error> + Send>;
fn ping(&self) -> Box<dyn Future<Item = StatusCode, Error = Error> + Send>;
fn events(
&self,
opts: &EventsOptions,
) -> Box<dyn Stream<Item = Result<Event>, Error = Error> + Send>;
fn container(&self, id: Cow<'static, str>) -> Container;
fn containers(&self) -> Containers;
fn image<'a>(&self, id: Cow<'a, str>) -> Image<'a>;
fn images(&self) -> Images;
fn network<'a>(&self, id: Cow<'a, str>) -> Network<'a>;
fn networks(&self) -> Networks;
}Expand description
Entry point interface for communicating with docker daemon
Required Methods§
Sourcefn version(&self) -> Box<dyn Future<Item = Version, Error = Error> + Send>
fn version(&self) -> Box<dyn Future<Item = Version, Error = Error> + Send>
Returns version information associated with the docker daemon
Sourcefn info(&self) -> Box<dyn Future<Item = Info, Error = Error> + Send>
fn info(&self) -> Box<dyn Future<Item = Info, Error = Error> + Send>
Returns information associated with the docker daemon
Sourcefn ping(&self) -> Box<dyn Future<Item = StatusCode, Error = Error> + Send>
fn ping(&self) -> Box<dyn Future<Item = StatusCode, Error = Error> + Send>
Returns a simple ping response indicating the docker daemon is accessible
Sourcefn events(
&self,
opts: &EventsOptions,
) -> Box<dyn Stream<Item = Result<Event>, Error = Error> + Send>
fn events( &self, opts: &EventsOptions, ) -> Box<dyn Stream<Item = Result<Event>, Error = Error> + Send>
Returns an iterator over streamed docker events
Sourcefn container(&self, id: Cow<'static, str>) -> Container
fn container(&self, id: Cow<'static, str>) -> Container
Exports an interface for interacting with docker container
Sourcefn containers(&self) -> Containers
fn containers(&self) -> Containers
Exports an interface for interacting with docker containers
Sourcefn image<'a>(&self, id: Cow<'a, str>) -> Image<'a>
fn image<'a>(&self, id: Cow<'a, str>) -> Image<'a>
Exports an interface for interacting with docker image