rust-extensions/crates/client-protos
Maksym Pavlenko 68a651b0e4 Add GRPC client crate
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2021-07-26 10:16:32 -07:00
..
examples Add GRPC client crate 2021-07-26 10:16:32 -07:00
src Add GRPC client crate 2021-07-26 10:16:32 -07:00
vendor Add GRPC client crate 2021-07-26 10:16:32 -07:00
Cargo.toml Add GRPC client crate 2021-07-26 10:16:32 -07:00
README.md Add GRPC client crate 2021-07-26 10:16:32 -07:00
build.rs Add GRPC client crate 2021-07-26 10:16:32 -07:00

README.md

GRPC bindings to containerd APIs

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