6db412f
pub mod error;
pub mod s3;
pub use error::StorageError;
pub use s3::{MAX_PRESIGN_EXPIRY_SECS, ObjectInfo, ObjectPage, S3Client};
#[macro_export]
macro_rules! storage_error_conversion {
($name:ident) => {
impl From<::storage::StorageError> for $name {
fn from(error: ::storage::StorageError) -> Self {
Self::Internal(format!("storage error: {error}"))
}
}
};
}