pub struct BollardDocker { /* private fields */ }Expand description
Real implementation wrapping bollard::Docker.
This is the default implementation used in production.
Implementations§
Source§impl BollardDocker
impl BollardDocker
Sourcepub fn new(docker: Docker) -> Self
pub fn new(docker: Docker) -> Self
Create a new BollardDocker from a bollard::Docker instance.
Trait Implementations§
Source§impl DockerOperations for BollardDocker
impl DockerOperations for BollardDocker
Source§fn create_exec<'life0, 'life1, 'async_trait>(
&'life0 self,
container_id: &'life1 str,
options: CreateExecOptions<String>,
) -> Pin<Box<dyn Future<Output = Result<CreateExecResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_exec<'life0, 'life1, 'async_trait>(
&'life0 self,
container_id: &'life1 str,
options: CreateExecOptions<String>,
) -> Pin<Box<dyn Future<Output = Result<CreateExecResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create an exec instance in a container.
Source§fn start_exec<'life0, 'life1, 'async_trait>(
&'life0 self,
exec_id: &'life1 str,
options: Option<StartExecOptions>,
) -> Pin<Box<dyn Future<Output = Result<StartExecResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_exec<'life0, 'life1, 'async_trait>(
&'life0 self,
exec_id: &'life1 str,
options: Option<StartExecOptions>,
) -> Pin<Box<dyn Future<Output = Result<StartExecResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Start an exec instance.
Source§fn inspect_exec<'life0, 'life1, 'async_trait>(
&'life0 self,
exec_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ExecInspectResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn inspect_exec<'life0, 'life1, 'async_trait>(
&'life0 self,
exec_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ExecInspectResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Inspect an exec instance to get exit code.
Auto Trait Implementations§
impl Freeze for BollardDocker
impl !RefUnwindSafe for BollardDocker
impl Send for BollardDocker
impl Sync for BollardDocker
impl Unpin for BollardDocker
impl !UnwindSafe for BollardDocker
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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