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

#196 in Asynchronous

Download history 1198/week @ 2024-08-04 2056/week @ 2024-08-11 1358/week @ 2024-08-18 1153/week @ 2024-08-25 1535/week @ 2024-09-01 1471/week @ 2024-09-08 1379/week @ 2024-09-15 1306/week @ 2024-09-22 1240/week @ 2024-09-29 2117/week @ 2024-10-06 2346/week @ 2024-10-13 1964/week @ 2024-10-20 2393/week @ 2024-10-27 2354/week @ 2024-11-03 2514/week @ 2024-11-10 2816/week @ 2024-11-17

10,248 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
~161K SLoC