Crate docbox_storage

Crate docbox_storage 

Source
Expand description

§Storage

Docbox storage backend abstraction, handles abstracting the task of working with file storage to allow for multiple backends and easier testing.

§Environment Variables

See s3 this is currently the only available backend for storage

Modules§

s3
S3 Storage Backend

Structs§

FileStream
Stream of bytes from a file

Enums§

CreateBucketOutcome
Outcome from creating a bucket
StorageLayerError
Errors that can occur when using a storage layer
StorageLayerFactory
Storage layer factory for creating storage layer instances with some underlying backend implementation
StorageLayerFactoryConfig
Configuration for a storage layer factory
StorageLayerFactoryConfigError
Errors that could occur when loading the storage layer factory configuration from the environment
TenantStorageLayer
Storage layer for a tenant with different underlying backends