Skip to main content

BollardReadClient

Struct BollardReadClient 

Source
pub struct BollardReadClient { /* private fields */ }
Expand description

Local Bollard implementation of the neutral Docker read contracts.

Implementations§

Source§

impl BollardReadClient

Source

pub fn connect_local(host: &HostRecord) -> InfraResult<Self>

Connects to a local Docker socket and binds the client to one host revision.

Source

pub async fn connect_remote( connection: Arc<OpenSshConnection>, host: &HostRecord, remote_socket: &Path, cancellation: &CancellationToken, ) -> InfraResult<Self>

Connects to a remote Docker Unix socket through a strict OpenSSH forward.

Source

pub async fn close(self) -> InfraResult<()>

Explicitly closes an owned remote forward when present.

Trait Implementations§

Source§

impl ContainerExecMutator for BollardReadClient

Source§

fn exec_container<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, host: &'life1 HostRecord, request: &'life2 ContainerExecRequest, cancellation: &'life3 CancellationToken, ) -> Pin<Box<dyn Future<Output = MutationResult<ContainerExecReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Executes one direct argv command without a shell or TTY.
Source§

impl ContainerLifecycleMutator for BollardReadClient

Source§

fn mutate_container<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, host: &'life1 HostRecord, request: &'life2 ContainerLifecycleRequest, cancellation: &'life3 CancellationToken, ) -> Pin<Box<dyn Future<Output = MutationResult<ContainerMutationReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Sends one lifecycle mutation while preserving send uncertainty.
Source§

impl ContainerReader for BollardReadClient

Source§

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.
Source§

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.
Source§

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.
Source§

impl ContainerRecreateInspector for BollardReadClient

Source§

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

Captures replacement-relevant container configuration.
Source§

impl ContainerRecreateMutator for BollardReadClient

Source§

fn recreate_container<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, host: &'life1 HostRecord, request: &'life2 ContainerRecreateRequest, cancellation: &'life3 CancellationToken, ) -> Pin<Box<dyn Future<Output = MutationResult<ContainerRecreateReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Replaces a container from its captured configuration.
Source§

impl DockerCleanupMutator for BollardReadClient

Source§

fn remove_image<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, host: &'life1 HostRecord, request: &'life2 ImageRemovalRequest, cancellation: &'life3 CancellationToken, ) -> Pin<Box<dyn Future<Output = MutationResult<ImageRemovalReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Removes one image.
Source§

fn prune<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, host: &'life1 HostRecord, request: &'life2 DockerPruneRequest, cancellation: &'life3 CancellationToken, ) -> Pin<Box<dyn Future<Output = MutationResult<DockerPruneReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Prunes one target scope.
Source§

impl DockerSystemReader for BollardReadClient

Source§

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

Reads Docker daemon information.
Source§

impl DockerTelemetryReader for BollardReadClient

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.
Source§

impl ImagePullMutator for BollardReadClient

Source§

fn pull_image<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, host: &'life1 HostRecord, request: &'life2 ImagePullRequest, progress: &'life3 dyn MutationProgressReporter, cancellation: &'life4 CancellationToken, ) -> Pin<Box<dyn Future<Output = MutationResult<ImagePullReceipt>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Pulls one image while emitting canonical progress and preserving send uncertainty.
Source§

impl ImageReader for BollardReadClient

Source§

fn list_images<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, host: &'life1 HostRecord, options: &'life2 ImageListOptions, cancellation: &'life3 CancellationToken, ) -> Pin<Box<dyn Future<Output = InfraResult<Vec<ImageSummary>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Lists images.
Source§

impl NetworkReader for BollardReadClient

Source§

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

Lists networks.
Source§

impl VolumeReader for BollardReadClient

Source§

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

Lists volumes.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> ContainerRecreateClient for T

Source§

impl<T> DockerArtifactClient for T

Source§

impl<T> DockerCleanupClient for T

Source§

impl<T> DockerMutationClient for T

Source§

impl<T> DockerReadClient for T