Skip to content

meilisearch/strois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Languages