Skip to main content

DockerClient

Trait DockerClient 

Source
pub trait DockerClient {
    // Required methods
    fn list_containers(
        &self,
    ) -> impl Future<Output = Result<Vec<Container>, DockerError>> + Send;
    fn list_images(
        &self,
    ) -> impl Future<Output = Result<Vec<Image>, DockerError>> + Send;
    fn list_networks(
        &self,
    ) -> impl Future<Output = Result<Vec<Network>, DockerError>> + Send;
    fn list_volumes(
        &self,
    ) -> impl Future<Output = Result<Vec<Volume>, DockerError>> + Send;
    fn inspect_container(
        &self,
        id: &str,
    ) -> impl Future<Output = Result<Container, DockerError>> + Send;
    fn container_logs(
        &self,
        id: &str,
        tail: usize,
    ) -> impl Future<Output = Result<Vec<String>, DockerError>> + Send;
    fn container_logs_stream(
        &self,
        id: &str,
        tail: usize,
    ) -> impl Future<Output = Result<DockerLogStream, DockerError>> + Send;
    fn container_stats(
        &self,
        id: &str,
    ) -> impl Future<Output = Result<MetricSample, DockerError>> + Send;
    fn events_stream(
        &self,
        since: Option<&str>,
        until: Option<&str>,
    ) -> impl Future<Output = Result<DockerEventStream, DockerError>> + Send;
    fn ping(&self) -> impl Future<Output = Result<bool, DockerError>> + Send;
}

Required Methods§

Source

fn list_containers( &self, ) -> impl Future<Output = Result<Vec<Container>, DockerError>> + Send

Source

fn list_images( &self, ) -> impl Future<Output = Result<Vec<Image>, DockerError>> + Send

Source

fn list_networks( &self, ) -> impl Future<Output = Result<Vec<Network>, DockerError>> + Send

Source

fn list_volumes( &self, ) -> impl Future<Output = Result<Vec<Volume>, DockerError>> + Send

Source

fn inspect_container( &self, id: &str, ) -> impl Future<Output = Result<Container, DockerError>> + Send

Source

fn container_logs( &self, id: &str, tail: usize, ) -> impl Future<Output = Result<Vec<String>, DockerError>> + Send

Source

fn container_logs_stream( &self, id: &str, tail: usize, ) -> impl Future<Output = Result<DockerLogStream, DockerError>> + Send

Source

fn container_stats( &self, id: &str, ) -> impl Future<Output = Result<MetricSample, DockerError>> + Send

Source

fn events_stream( &self, since: Option<&str>, until: Option<&str>, ) -> impl Future<Output = Result<DockerEventStream, DockerError>> + Send

Source

fn ping(&self) -> impl Future<Output = Result<bool, DockerError>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§