Expand description
Backend implementations and the common provider interface.
Provider instances normalize paths, transfers, and optional URL signing across local and S3-compatible object stores. The module also owns backend construction and startup connectivity checks. Common interface over local and S3-compatible object stores.
Providers apply an optional base path, choose single-part or multipart uploads, and expose streaming reads and deletes. Backend failures are translated into the serviceβs shared error type.
Re-exportsΒ§
use std::iter::from_fn;πuse std::iter::once;πuse std::ops::Range;πuse std::sync::Arc;πuse std::time::Duration;πuse bytes::Bytes;πuse derive_more::Debug;πuse futures::FutureExt;πuse futures::Stream;πuse futures::StreamExt;πuse futures::TryFutureExt;πuse futures::TryStreamExt;πuse http::Method;πuse object_store::signer::Signer;πuse object_store::Attributes;πuse object_store::CopyMode;πuse object_store::DynObjectStore;πuse object_store::GetResult;πuse object_store::MultipartUpload;πuse object_store::ObjectMeta;πuse object_store::ObjectStore;πuse object_store::ObjectStoreExt;πuse object_store::PutPayload;πuse object_store::PutResult;πuse object_store::path::Path;πuse tuwunel_core::Error;πuse tuwunel_core::Result;πuse tuwunel_core::config::StorageProvider;πuse tuwunel_core::debug;πuse tuwunel_core::debug;πuse tuwunel_core::err;πuse tuwunel_core::error;πuse tuwunel_core::error;πuse tuwunel_core::error::error_chain;πuse tuwunel_core::extract_variant;πuse tuwunel_core::implement;πuse tuwunel_core::info;πuse tuwunel_core::info;πuse tuwunel_core::trace;πuse tuwunel_core::utils::BoolExt;πuse tuwunel_core::utils::result::FlatOk;πuse tuwunel_core::utils::stream::IterStream;πuse tuwunel_core::utils::stream::TryReadyExt;πuse url::Url;π
ModulesΒ§
- gcs
- Google Cloud Storage storage-provider construction.
- local
- Local-filesystem storage-provider construction.
- s3
- S3-compatible storage-provider construction.
StructsΒ§
- Provider
- One configured object-storage backend.
FunctionsΒ§
- chunked π
- Splits a payload into nonempty parts no larger than
part_size.
Type AliasesΒ§
- Fetch
Item - One streamed object chunk with its returned range and complete object size.
- Fetch
Meta Item - One streamed object chunk with shared response metadata and attributes.