Expand description
Backbone Storage Module
Provides file storage capabilities with multiple backend support:
- Local filesystem storage
- AWS S3 / S3-compatible (MinIO) storage (feature:
s3) - File compression and optimization (feature:
compression) - Security and virus scanning (feature:
security)
Re-exports§
pub use error::StorageError;pub use error::StorageResult;pub use types::StorageFile;pub use types::StorageConfig;pub use types::StorageBackend;pub use types::UploadOptions;pub use types::DownloadOptions;pub use types::PresignedUrlOptions;pub use types::FileMetadata;pub use types::StorageStats;pub use types::HttpMethod;pub use types::ByteRange;pub use types::LocalStorageConfig;pub use types::S3StorageConfig;pub use types::MinIOStorageConfig;pub use types::GcsStorageConfig;pub use traits::StorageService;pub use traits::StorageManager;pub use traits::StorageMonitor;pub use traits::FileListResult;
Modules§
- error
- Storage module error types
- local
- Simplified local filesystem storage implementation This version removes advanced features for compilation stability
- traits
- Storage service traits
- types
- Storage module types and structures
Constants§
- DEFAULT_
CHUNK_ SIZE - DEFAULT_
MULTIPART_ THRESHOLD - DEFAULT_
PRESIGNED_ EXPIRY - VERSION
- Storage module version
Functions§
- default_
config - Get default storage configuration
- detect_
mime_ type - Utility function to detect file MIME type
- from_
env - Create storage service from environment variables
- sanitize_
filename - Utility function to generate safe file names