Skip to main content

Module s3

Module s3 

Source
Expand description

S3-compatible storage-provider construction.

The constructor applies endpoint, credential, transport, and signing options before wrapping the object-store client as a provider. Configurations with neither a URL nor a bucket return no provider. S3-compatible storage-provider construction.

Configuration and environment values feed the object-store S3 builder. Providers without a URL or bucket are treated as disabled, while enabled providers expose signing through the common interface.

Re-exportsยง

use std::sync::Arc; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use object_store::aws::AmazonS3Builder; ๐Ÿ”’
use object_store::client::ClientOptions; ๐Ÿ”’
use object_store::signer::Signer; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::config::StorageProvider; ๐Ÿ”’
use tuwunel_core::config::StorageProviderS3; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug_info; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::trace; ๐Ÿ”’
use tuwunel_core::version::user_agent; ๐Ÿ”’
use super::Provider; ๐Ÿ”’

Structsยง

GetResult
Object-store transfer types used by the S3 provider boundary.
PutPayload
Object-store transfer types used by the S3 provider boundary.
PutResult
Object-store transfer types used by the S3 provider boundary.

Enumsยง

GetResultPayload
Object-store transfer types used by the S3 provider boundary.

Functionsยง

new ๐Ÿ”’
Builds an enabled S3-compatible provider.