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

#6 in #csi

Download history 14/week @ 2024-12-04 33/week @ 2024-12-11 3/week @ 2024-12-18 4/week @ 2025-01-15 2/week @ 2025-01-29 21/week @ 2025-02-12 42/week @ 2025-02-19 10/week @ 2025-02-26

74 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

~14–23MB
~431K SLoC