4 releases (breaking)

0.4.0 Aug 3, 2021
0.3.0 Feb 5, 2021
0.2.0 Jan 21, 2021
0.1.0 Sep 20, 2020

#4 in #csi

Download history 2/week @ 2024-02-20 16/week @ 2024-02-27 11/week @ 2024-03-05 26/week @ 2024-03-12

55 downloads per month
Used in kubelet

Apache-2.0

18KB

k8s-csi

Automatically generated Rust types, clients, and servers from Kubernetes CSI Protobuf spec using tonic.

API Documentation


lib.rs:

k8s-csi

Automatically generated types, clients, and servers from Kubernetes CSI Protobuf definitions.

Examples

Connecting over TCP:

use k8s_csi::v1_3_0::controller_client::ControllerClient;
use k8s_csi::v1_3_0::ListVolumesRequest;

#[tokio::main]
async fn main() {
    let mut client = ControllerClient::connect("lttp://[::]:50051").await.expect("Could not create client.");

    let request = tonic::Request::new(ListVolumesRequest {
        max_entries: 0,
        starting_token: "".to_string()
    });
    let response = client.list_volumes(request).await.expect("Request failed.");
    println!("{:?}", response);
}

Dependencies

~13–18MB
~408K SLoC