pub struct BollardDockerClient { /* private fields */ }Implementations§
Source§impl BollardDockerClient
impl BollardDockerClient
Sourcepub fn connect() -> Result<Self, DockerError>
pub fn connect() -> Result<Self, DockerError>
Connect with default timeout values.
Sourcepub fn connect_with_config(config: &DolConfig) -> Result<Self, DockerError>
pub fn connect_with_config(config: &DolConfig) -> Result<Self, DockerError>
Connect with timeout values from the given config.
Sourcepub fn connect_with_host(
host: &str,
config: &DolConfig,
) -> Result<Self, DockerError>
pub fn connect_with_host( host: &str, config: &DolConfig, ) -> Result<Self, DockerError>
Connect to a specific Docker host with timeout values from config.
Sourcepub const fn api_config(&self) -> &DockerApiConfig
pub const fn api_config(&self) -> &DockerApiConfig
Get a reference to the API config (used by the metrics collector).
pub fn from_docker(docker: Docker) -> Self
Trait Implementations§
Source§impl Clone for BollardDockerClient
impl Clone for BollardDockerClient
Source§fn clone(&self) -> BollardDockerClient
fn clone(&self) -> BollardDockerClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DockerClient for BollardDockerClient
impl DockerClient for BollardDockerClient
async fn list_containers(&self) -> Result<Vec<Container>, DockerError>
async fn list_images(&self) -> Result<Vec<Image>, DockerError>
async fn list_networks(&self) -> Result<Vec<Network>, DockerError>
async fn list_volumes(&self) -> Result<Vec<Volume>, DockerError>
async fn inspect_container(&self, id: &str) -> Result<Container, DockerError>
async fn container_logs( &self, id: &str, tail: usize, ) -> Result<Vec<String>, DockerError>
async fn container_logs_stream( &self, id: &str, tail: usize, ) -> Result<DockerLogStream, DockerError>
async fn container_stats(&self, id: &str) -> Result<MetricSample, DockerError>
async fn events_stream( &self, since: Option<&str>, until: Option<&str>, ) -> Result<DockerEventStream, DockerError>
async fn ping(&self) -> Result<bool, DockerError>
Auto Trait Implementations§
impl Freeze for BollardDockerClient
impl !RefUnwindSafe for BollardDockerClient
impl Send for BollardDockerClient
impl Sync for BollardDockerClient
impl Unpin for BollardDockerClient
impl UnsafeUnpin for BollardDockerClient
impl !UnwindSafe for BollardDockerClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more