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

Download history 1024/week @ 2024-07-18 963/week @ 2024-07-25 1188/week @ 2024-08-01 1420/week @ 2024-08-08 1981/week @ 2024-08-15 1188/week @ 2024-08-22 1276/week @ 2024-08-29 1407/week @ 2024-09-05 1605/week @ 2024-09-12 1317/week @ 2024-09-19 1255/week @ 2024-09-26 1769/week @ 2024-10-03 2359/week @ 2024-10-10 1727/week @ 2024-10-17 2570/week @ 2024-10-24 1783/week @ 2024-10-31

8,841 downloads per month
Used in containerd-shim-wasm

Apache-2.0

50KB
262 lines

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

Dependencies

~6–14MB
~162K SLoC