fileloft-store-azure 0.3.0

Azure Blob Storage backend for the tus.io resumable upload protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

/// Errors from [`AzureStore`](crate::AzureStore) construction.
///
/// Runtime failures after the store is built surface as [`TusError`](fileloft_core::error::TusError).
#[derive(Debug, Error)]
pub enum AzureStoreError {
    #[error("Azure Blob container name is empty")]
    ContainerEmpty,

    #[error("storage account name is missing (set it on the builder or AZURE_STORAGE_ACCOUNT)")]
    AccountMissing,

    #[error("failed to build Azure Blob Storage client: {0}")]
    ClientInit(String),
}