Struct shiplift::docker::Docker [−][src]
pub struct Docker { /* fields omitted */ }
Entrypoint interface for communicating with docker daemon
Implementations
impl Docker
[src]
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 services(&self) -> Services<'_>
[src]
Exports an interface for interacting with docker services
pub fn networks(&self) -> Networks<'_>
[src]
pub fn volumes(&self) -> Volumes<'_>
[src]
pub async fn version(&self) -> Result<Version>
[src]
Returns version information associated with the docker daemon
pub async fn info(&self) -> Result<Info>
[src]
Returns information associated with the docker daemon
pub async fn ping(&self) -> Result<String>
[src]
Returns a simple ping response indicating the docker daemon is accessible
pub fn events<'docker>(
&'docker self,
opts: &EventsOptions
) -> impl Stream<Item = Result<Event>> + Unpin + 'docker
[src]
&'docker self,
opts: &EventsOptions
) -> impl Stream<Item = Result<Event>> + Unpin + 'docker
Returns a stream of docker events
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> Instrument for T
[src]
impl<T> Instrument for T
[src]