pub trait ContainerReader: Send + Sync {
// Required methods
fn list_containers<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
options: &'life2 ContainerListOptions,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<ContainerSummary>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn inspect_container<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
container: &'life2 str,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<ContainerInspect>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn top_container<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
container: &'life2 str,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<ContainerProcessTable>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
Docker container read operations.
Required Methods§
Sourcefn list_containers<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
options: &'life2 ContainerListOptions,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<ContainerSummary>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn list_containers<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
options: &'life2 ContainerListOptions,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Vec<ContainerSummary>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Lists containers.
Sourcefn inspect_container<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
container: &'life2 str,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<ContainerInspect>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn inspect_container<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
container: &'life2 str,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<ContainerInspect>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Inspects one container.
Sourcefn top_container<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
container: &'life2 str,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<ContainerProcessTable>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn top_container<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
container: &'life2 str,
cancellation: &'life3 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<ContainerProcessTable>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Returns one container process table.