21 lines
903 B
Markdown
21 lines
903 B
Markdown
# containerd GRPC client
|
|
|
|
[](https://crates.io/crates/containerd-client)
|
|
[](https://docs.rs/containerd-client/latest/containerd_client/)
|
|
[](https://github.com/containerd/rust-extensions/blob/main/LICENSE)
|
|
[](https://github.com/containerd/rust-extensions/actions/workflows/ci.yml)
|
|
|
|
This crate implements a GRPC client to query containerd APIs.
|
|
|
|
## Example
|
|
|
|
```rust
|
|
// 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());
|
|
```
|