Crate containerd_client

source
Expand description

§containerd GRPC client

Crates.io docs.rs Crates.io CI

This crate implements a GRPC client to query containerd APIs.

§Example

Run with cargo run --example version

use containerd_client::{connect, services::v1::version_client::VersionClient};

async fn query_version() {
    // Launch containerd at /run/containerd/containerd.sock
    let channel = connect("/run/containerd/containerd.sock").await.unwrap();

    let mut client = VersionClient::new(channel);
    let resp = client.version(()).await.unwrap();

    println!("Response: {:?}", resp.get_ref());
}

Re-exports§

Modules§

  • Generated event types.
  • Generated google.rpc types, containerd services typically use some of these types.
  • Generated containerd.services.* services.
  • Generated containerd.types types.

Macros§

Structs§

  • Client to containerd’s APIs.

Functions§

  • Connect creates a unix channel to containerd GRPC socket.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy