Crates.io | containerd-client |
lib.rs | containerd-client |
version | 0.6.0 |
source | src |
created_at | 2021-12-10 18:20:28.346566 |
updated_at | 2024-10-07 18:37:11.015971 |
description | GRPC bindings to containerd APIs |
homepage | https://containerd.io |
repository | https://github.com/containerd/rust-extensions |
max_upload_size | |
id | 495821 |
size | 205,018 |
This crate implements a GRPC client to query containerd APIs.
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());
}