[][src]Struct harbourmaster::Client

pub struct Client { /* fields omitted */ }

Docker client

Methods

impl Client[src]

pub fn new() -> Self[src]

Construct a new unique Docker Client. Unless you know you need a unique Client, you should probably use Client::default() which uses a global Docker client internally

Methods from Deref<Target = Docker>

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 Client[src]

fn default() -> Self[src]

Construct a new Docker Client. Internally this client uses a globally shared client with a connection pool.

impl From<Docker> for Client[src]

fn from(docker: Docker) -> Self[src]

Create a new Docker Client from a shiplift::Docker object

Example

use harbourmaster::Client;

let client = Client::from(
    shiplift::Docker::new()
);

impl From<Arc<Docker>> for Client[src]

impl<'_> From<&'_ Arc<Docker>> for Client[src]

impl<'_> From<&'_ Client> for Client[src]

impl Deref for Client[src]

type Target = Docker

The resulting type after dereferencing.

Auto Trait Implementations

impl Sync for Client

impl Send for Client

impl Unpin for Client

impl !RefUnwindSafe for Client

impl !UnwindSafe for Client

Blanket Implementations

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

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]

impl<T> Erased for T