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: about 1 year 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T05:00:15.000Z (over 3 years ago)
- Last Synced: 2025-02-05T02:51:47.288Z (over 1 year 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

[](https://crates.io/crates/aiven_rs)
[](https://docs.rs/aiven_rs)
[](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
```
## License
This project is licensed under
- MIT license ([LICENSE-MIT](LICENSE) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))

