Expand description
Amazon S3 and S3-compatible (MinIO, LocalStack) storage backend.
Registers a rskit_storage::FileStore implementation for Amazon S3
and any S3-compatible object store (MinIO, LocalStack, Ceph, etc.).
§Features
- MinIO / S3-compatible:
force_path_style, custom endpoint, explicit credentials - Standard FileStore trait: drop-in replacement for any rskit-storage backend
§Credential Resolution
Credentials are resolved in this order:
- Explicit
access_key_id+secret_access_keyfromConfig AWS_ACCESS_KEY_ID+AWS_SECRET_ACCESS_KEYenvironment variables
§Example
use rskit_storage::StorageRegistry;
use rskit_storage_s3::{Config, register};
let mut registry = StorageRegistry::new();
register(&mut registry, Config {
bucket: "my-assets".into(),
region: Some("us-east-1".into()),
endpoint: Some("http://localhost:9000".into()),
force_path_style: true,
access_key_id: Some("minioadmin".into()),
secret_access_key: Some("minioadmin".into()),
prefix: None,
})?;Structs§
- Config
- Configuration for the S3 store.
Functions§
- register
- Explicitly register the S3 backend in an injected storage registry.