8 releases (5 breaking)
0.6.0 | Oct 7, 2024 |
---|---|
0.5.0 | Mar 13, 2024 |
0.4.0 | Aug 10, 2023 |
0.3.0 | May 5, 2023 |
0.1.2 | Dec 11, 2021 |
#192 in Asynchronous
8,841 downloads per month
Used in containerd-shim-wasm
50KB
262 lines
containerd GRPC client
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());
}
Dependencies
~6–14MB
~162K SLoC