4 releases (breaking)

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

#581 in Network programming

Download history 380/week @ 2021-04-14 100/week @ 2021-04-21 98/week @ 2021-04-28 247/week @ 2021-05-05 256/week @ 2021-05-12 266/week @ 2021-05-19 203/week @ 2021-05-26 384/week @ 2021-06-02 135/week @ 2021-06-09 132/week @ 2021-06-16 141/week @ 2021-06-23 55/week @ 2021-06-30 43/week @ 2021-07-07 163/week @ 2021-07-14 259/week @ 2021-07-21 272/week @ 2021-07-28

831 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:

# extern crate tokio;
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

~14MB
~312K SLoC