rust-extensions/crates/client
Bryant Biggs c0b92c4e96 chore: Update protobuf definitions using latest containerd version v2.1.1 2025-06-11 00:15:32 +00:00
..
examples Add example using the transfer service 2025-02-01 06:55:48 +00:00
src Add a to_any helper in the containerd client crate 2025-01-16 20:44:01 +00:00
vendor chore: Update protobuf definitions using latest containerd version v2.1.1 2025-06-11 00:15:32 +00:00
Cargo.toml Bump client to 0.8.0 2025-01-16 13:46:49 -08:00
README.md Add support for windows to containerd client 2024-04-24 22:31:39 +00:00
build.rs add experimental flag 2025-02-20 18:20:05 +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());
}