Skip to main content

DockerTelemetryReader

Trait DockerTelemetryReader 

Source
pub trait DockerTelemetryReader: Send + Sync {
    // Required methods
    fn disk_usage<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        host: &'life1 HostRecord,
        cancellation: &'life2 CancellationToken,
    ) -> Pin<Box<dyn Future<Output = InfraResult<DockerDiskUsage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn container_logs<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        host: &'life1 HostRecord,
        container: &'life2 str,
        options: &'life3 ContainerLogOptions,
        cancellation: &'life4 CancellationToken,
    ) -> Pin<Box<dyn Future<Output = InfraResult<ContainerLogs>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn container_stats<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        host: &'life1 HostRecord,
        container: &'life2 str,
        cancellation: &'life3 CancellationToken,
    ) -> Pin<Box<dyn Future<Output = InfraResult<ContainerStatsSnapshot>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Docker telemetry read operations.

Required Methods§

Source

fn disk_usage<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, host: &'life1 HostRecord, cancellation: &'life2 CancellationToken, ) -> Pin<Box<dyn Future<Output = InfraResult<DockerDiskUsage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Reads daemon disk usage.

Source

fn container_logs<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, host: &'life1 HostRecord, container: &'life2 str, options: &'life3 ContainerLogOptions, cancellation: &'life4 CancellationToken, ) -> Pin<Box<dyn Future<Output = InfraResult<ContainerLogs>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Reads bounded one-shot container logs.

Source

fn container_stats<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, host: &'life1 HostRecord, container: &'life2 str, cancellation: &'life3 CancellationToken, ) -> Pin<Box<dyn Future<Output = InfraResult<ContainerStatsSnapshot>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Reads one container statistics frame.

Implementors§