[][src]Struct wharf::Docker

pub struct Docker { /* fields omitted */ }

The main interface to interact with an instance of Docker.

Methods

impl Docker[src]

pub fn new(url: &str) -> Result<Self, Error>[src]

Creates a new instance of docker interface.
May return an error in case of a bad url.

pub fn container(&self, id: &str) -> Container[src]

Get reference to a specific container interface

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

Get reference to api interface of containers

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

Get reference to api interface of images

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

Get reference to api interface of networks

pub async fn authenticate<'_, '_>(
    &'_ self,
    opts: &'_ AuthOpts
) -> Result<String, Error>
[src]

Get auth token for authorized operations
Returns a base64 encoded json with user data.

pub async fn exec_inspect<'_, '_>(
    &'_ self,
    exec_id: &'_ str
) -> Result<ExecInspect, Error>
[src]

Trait Implementations

impl Debug for Docker[src]

Auto Trait Implementations

impl !RefUnwindSafe for Docker

impl Send for Docker

impl Sync for Docker

impl Unpin for Docker

impl !UnwindSafe for Docker

Blanket Implementations

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

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

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

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.