Skip to main content

Crate backbone_storage

Crate backbone_storage 

Source
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