DockerApi

Trait DockerApi 

Source
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§

Source

fn version(&self) -> Box<dyn Future<Item = Version, Error = Error> + Send>

Returns version information associated with the docker daemon

Source

fn info(&self) -> Box<dyn Future<Item = Info, Error = Error> + Send>

Returns information associated with the docker daemon

Source

fn ping(&self) -> Box<dyn Future<Item = StatusCode, Error = Error> + Send>

Returns a simple ping response indicating the docker daemon is accessible

Source

fn events( &self, opts: &EventsOptions, ) -> Box<dyn Stream<Item = Result<Event>, Error = Error> + Send>

Returns an iterator over streamed docker events

Source

fn container(&self, id: Cow<'static, str>) -> Container

Exports an interface for interacting with docker container

Source

fn containers(&self) -> Containers

Exports an interface for interacting with docker containers

Source

fn image<'a>(&self, id: Cow<'a, str>) -> Image<'a>

Exports an interface for interacting with docker image

Source

fn images(&self) -> Images

Exports an interface for interacting with images

Source

fn network<'a>(&self, id: Cow<'a, str>) -> Network<'a>

Exports an interface for interacting with network

Source

fn networks(&self) -> Networks

Exports an interface for interacting with networks

Implementors§