Expand description
AVL Storage - S3-compatible object storage optimized for Brazil
§Features
- S3-compatible API (drop-in replacement)
- Automatic compression via
avila-compress - 3-8ms latency in Brazil
- 50% cheaper than AWS S3
- Multipart uploads for large files
§Quick Start
use avl_storage::{StorageClient, PutObjectRequest};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = StorageClient::connect("https://storage.avila.cloud").await?;
// Upload file
client.put_object(PutObjectRequest {
bucket: "my-bucket".to_string(),
key: "file.txt".to_string(),
body: b"Hello AVL Storage!".to_vec(),
content_type: Some("text/plain".to_string()),
..Default::default()
}).await?;
Ok(())
}Re-exports§
pub use client::StorageClient;
Modules§
Structs§
- GetObject
Response - Response from get object
- Object
Info - Object metadata
- PutObject
Request - Request to put an object
- PutObject
Response - Response from put object
Enums§
- Error
- AVL Storage error types
- Storage
Class - Storage class for objects