Struct shiplift::Docker
[−]
[src]
pub struct Docker { // some fields omitted }
Entrypoint interface for communicating with docker daemon
Methods
impl Docker
[src]
fn new() -> Docker
constructs a new Docker instance for a docker host listening at a url specified by an env var DOCKER_HOST
,
falling back on unix:///var/run/docker.sock
fn host(host: Url) -> Docker
constructs a new Docker instance for docker host listening at the given host url
fn images<'a>(&'a mut self) -> Images
Exports an interface for interacting with docker images
fn containers<'a>(&'a mut self) -> Containers
Exports an interface for interacting with docker containers
fn version(&mut self) -> Result<Version>
Returns version information associated with the docker daemon
fn info(&mut self) -> Result<Info>
Returns information associated with the docker daemon
fn ping(&mut self) -> Result<String>
Returns a simple ping response indicating the docker daemon is accessible
fn events(&mut self) -> Events
Retruns a stream of events ocurring on the current docker host