containerd-client

Crates.iocontainerd-client
lib.rscontainerd-client
version0.6.0
sourcesrc
created_at2021-12-10 18:20:28.346566
updated_at2024-10-07 18:37:11.015971
descriptionGRPC bindings to containerd APIs
homepagehttps://containerd.io
repositoryhttps://github.com/containerd/rust-extensions
max_upload_size
id495821
size205,018
Maksym Pavlenko (mxpv)

documentation

README

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());
}
Commit count: 551

cargo fmt