[−][src]Struct harbourmaster::Client
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]
&self,
opts: &EventsOptions
) -> impl Stream<Item = Event, Error = Error>
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]
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]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,