[][src]Struct shiplift::Docker

pub struct Docker { /* fields omitted */ }

Entrypoint interface for communicating with docker daemon

Methods

impl Docker[src]

pub fn new() -> Docker[src]

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

pub fn unix<S>(socket_path: S) -> Docker where
    S: Into<String>, 
[src]

Creates a new docker instance for a docker host listening on a given Unix socket.

pub fn host(host: Uri) -> Docker[src]

constructs a new Docker instance for docker host listening at the given host url

pub fn images(&self) -> Images[src]

Exports an interface for interacting with docker images

pub fn containers(&self) -> Containers[src]

Exports an interface for interacting with docker containers

pub fn networks(&self) -> Networks[src]

pub fn volumes(&self) -> Volumes[src]

pub fn version(&self) -> impl Future<Item = Version, Error = Error>[src]

Returns version information associated with the docker daemon

pub fn info(&self) -> impl Future<Item = Info, Error = Error>[src]

Returns information associated with the docker daemon

pub fn ping(&self) -> impl Future<Item = String, Error = Error>[src]

Returns a simple ping response indicating the docker daemon is accessible

pub fn events(
    &self,
    opts: &EventsOptions
) -> impl Stream<Item = Event, Error = Error>
[src]

Returns a stream of docker events

Trait Implementations

impl Default for Docker[src]

impl Clone for Docker[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for Docker

impl Sync for Docker

impl Send for Docker

impl !UnwindSafe for Docker

impl !RefUnwindSafe for Docker

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]