Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ansrivas/aiven-rs
An async rust-sdk to interact with https://aiven.io/
https://github.com/ansrivas/aiven-rs
aiven cloud rust-sdk
Last synced: 3 months ago
JSON representation
An async rust-sdk to interact with https://aiven.io/
- Host: GitHub
- URL: https://github.com/ansrivas/aiven-rs
- Owner: ansrivas
- License: mit
- Created: 2020-04-17T18:48:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T05:00:15.000Z (almost 2 years ago)
- Last Synced: 2024-09-14T10:10:05.762Z (4 months ago)
- Topics: aiven, cloud, rust-sdk
- Language: Rust
- Homepage:
- Size: 225 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
aiven-rs
An async rust-sdk for Aiven
![Linux](https://github.com/ansrivas/aiven-rs/workflows/Linux/badge.svg)
[![Crates.io](https://img.shields.io/crates/v/aiven_rs)](https://crates.io/crates/aiven_rs)
[![Docs.rs](https://docs.rs/aiven_rs/badge.svg)](https://docs.rs/aiven_rs)
[![codecov](https://codecov.io/gh/ansrivas/aiven-rs/branch/master/graph/badge.svg)](https://codecov.io/gh/ansrivas/aiven-rs)## Resources
- Build Status on other [platforms](./BUILD_STATUS.md)
- Majority of the end points from https://api.aiven.io/doc/ have been implemented as of [07.01.2021]
- [Documentation](https://docs.rs/aiven-rs)## Getting Started
```rust
// tokio = "1.0"
// aiven_rs = "0.4.0"use aiven_rs::{cloud::types::ResClouds, AivenClient};
#[tokio::main]
async fn main() {
env_logger::init();
// use std::env;
//
// let token = env::var("AIVEN_TOKEN").expect("Please set env variable to read AIVEN_TOKEN");
// let client = AivenClient::from_token("https://api.aiven.io", "v1", &token);let client = AivenClient::new("https://api.aiven.io", "v1");
let cloud_api = client.cloud();
let output: ResClouds = cloud_api.list_all().await.unwrap();
for cloud in &output.clouds {
println!("{:?}", cloud.cloud_name);
}
}
```
## Running the examples:
```sh
RUST_LOG=aiven_rs=debug cargo run --example clouds
```
## LicenseThis project is licensed under
- MIT license ([LICENSE-MIT](LICENSE) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))