7 releases (4 breaking)

0.5.0 Mar 13, 2024
0.4.0 Aug 10, 2023
0.3.0 May 5, 2023
0.2.0 Mar 7, 2022
0.1.2 Dec 11, 2021

#3 in #client-connect

Download history 553/week @ 2024-02-26 396/week @ 2024-03-04 530/week @ 2024-03-11 589/week @ 2024-03-18 360/week @ 2024-03-25 462/week @ 2024-04-01 402/week @ 2024-04-08 901/week @ 2024-04-15 649/week @ 2024-04-22 359/week @ 2024-04-29 445/week @ 2024-05-06 590/week @ 2024-05-13 763/week @ 2024-05-20 640/week @ 2024-05-27 734/week @ 2024-06-03 1031/week @ 2024-06-10

3,208 downloads per month
Used in containerd-shim-wasm

Apache-2.0

49KB
231 lines

containerd GRPC client

Crates.io docs.rs Crates.io CI

This crate implements a GRPC client to query containerd APIs.

Example

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

~4–6MB
~102K SLoC