This provides a solution to Any->type matching that happens on the containerd Go-based server side where the Any types in prost use typeurl as defined in the protobuf spec and the server side is matching on the fullname property of the type. Signed-off-by: Phil Estes <estesp@amazon.com> |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| vendor | ||
| Cargo.toml | ||
| README.md | ||
| build.rs | ||
| rsync.txt | ||
README.md
containerd GRPC client
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());
}