meilisearch / strois

A simple non-async S3 client based on the REST API

Home Page:https://docs.rs/strois

Repository from Github https://github.commeilisearch/stroisRepository from Github https://github.commeilisearch/strois

Strois

An S3 synchronous SDK based on rusty_s3 and ureq.

Usage

Sending and retrieving a document on S3

use strois::{Builder, Error, S3ErrorCode};

let bucket = Builder::new("http://localhost:9000")?
    .key("minioadmin")
    .secret("minioadmin")
    .with_url_path_style(true)
    .bucket("tamo")?
    .get_or_create()?;

bucket.put_object("tamo", b"kero")?;

let content = bucket.get_object_string("tamo")?;
assert_eq!(content, "kero");
# Ok::<(), strois::Error>(())

About

A simple non-async S3 client based on the REST API

https://docs.rs/strois


Languages

Language:Rust 100.0%