rust-extensions/crates/client
James Sturtevant 798ab74d20 Release 0.7.0 of Shim and 0.5.0 of client
Signed-off-by: James Sturtevant <jstur@microsoft.com>
2024-03-13 19:20:17 +00:00
..
examples Improve containerd client ergonomics 2023-08-09 12:03:36 -07:00
src Suppress warnings for generated code 2024-02-22 17:49:39 +00:00
vendor Update vendor 2024-02-22 17:49:39 +00:00
Cargo.toml Release 0.7.0 of Shim and 0.5.0 of client 2024-03-13 19:20:17 +00:00
README.md Make examples compilable 2023-10-03 20:41:38 -07:00
build.rs Patch invalid proto comments 2024-02-22 17:49:39 +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

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