rust-extensions/crates/client
Phil Estes 2d47d88f13 Add a to_any helper in the containerd client crate
This provides a solution to Any->type matching that happens on
the containerd Go-based server side where the Any types in prost
use typeurl as defined in the protobuf spec and the server side
is matching on the fullname property of the type.

Signed-off-by: Phil Estes <estesp@amazon.com>
2025-01-16 20:44:01 +00:00
..
examples chore: Fix whitespace 2024-07-30 16:54:34 +00:00
src Add a to_any helper in the containerd client crate 2025-01-16 20:44:01 +00:00
vendor Update vendor 2025-01-08 18:31:52 +00:00
Cargo.toml Bump containerd client to 0.7.0 2025-01-08 10:43:30 -08:00
README.md Add support for windows to containerd client 2024-04-24 22:31:39 +00:00
build.rs Update vendor 2025-01-08 18:31:52 +00:00
rsync.txt Add update vendor script 2024-02-22 17:49:39 +00:00

README.md

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());
}