5 releases (3 stable)

3.0.0 Jul 20, 2020
2.0.0 Sep 26, 2019
1.0.0 Sep 22, 2019
0.8.1 Jan 31, 2019
0.8.0 Jan 30, 2019

#5 in #ass


Used in ass-cli

MIT license

24KB
519 lines

Build Status Crate API

ASS-rs

A library for working with Aptoma Smooth Storage.

Examples

use ass_rs::{AssClient, AssError, file_handling, image_handling};

let ass_client = AssClient::create("https://url-to-storage", "account-name", "secretkey")?;

let image_url = image_handling::get_image_url(&ass_client, 123)?;
let image_data = image_handling::get_image_data(&ass_client, 123)?;

let file_data = file_handling::upload_file(&ass_client, "/data/file.pdf", "/destination")?;
let image_data = file_handling::upload_image(&ass_client, "/data/image.jpg")?;

lib.rs:

ASS-rs

A library for working with Aptoma Smooth Storage.

Examples

use ass_rs::{AssClient, AssError, file_handling, image_handling};

# fn main() -> Result<(), AssError> {

let ass_client = AssClient::create("https://url-to-storage", "account-name", "secretkey")?;

let image_url = image_handling::get_image_url(&ass_client, 123)?;
let image_data = image_handling::get_image_data(&ass_client, 123)?;

let file_data = file_handling::upload_file(&ass_client, "/data/file.pdf", "/destination")?;
let image_data = file_handling::upload_image(&ass_client, "/data/image.jpg")?;

# Ok(())
# }

Dependencies

~14–19MB
~478K SLoC