rust-extensions/crates/client
bin liu cfca48d75c containerd-client: add example to create container and task
Add an example to show how to create/delete containers and tasks.

Signed-off-by: bin liu <bin@hyper.sh>
2021-12-19 20:09:17 -08:00
..
examples containerd-client: add example to create container and task 2021-12-19 20:09:17 -08:00
src containerd-client: add task service and with_namespace macro 2021-12-19 20:09:17 -08:00
vendor Rename client crate 2021-07-26 17:06:06 -07:00
Cargo.toml Bump containerd client to 0.1.2 2021-12-10 16:01:05 -08:00
README.md Add badges 2021-12-10 11:35:52 -08:00
build.rs containerd-client: add task service and with_namespace macro 2021-12-19 20:09:17 -08:00

README.md

containerd GRPC client

Crates.io docs.rs Crates.io CI

This crate implements a GRPC client to query containerd APIs.

Example

// Launch containerd at /run/containerd/containerd.sock
let channel = connect("/run/containerd/containerd.sock").await?;

let mut client = VersionClient::new(channel);
let resp = client.version(()).await?;

println!("Response: {:?}", resp.get_ref());