[−][src]Struct wharf::Docker
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]
&'_ self,
opts: &'_ AuthOpts
) -> Result<String, Error>
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]
&'_ self,
exec_id: &'_ str
) -> Result<ExecInspect, Error>
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,