[−][src]Struct shipliftExp::Docker
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]
S: Into<String>,
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]
&self,
opts: &EventsOptions
) -> impl Stream<Item = Event, Error = Error>
Returns a stream of docker events
Trait Implementations
Auto Trait Implementations
impl Send for Docker
impl Sync for Docker
impl Unpin for Docker
impl !UnwindSafe for Docker
impl !RefUnwindSafe for Docker
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,