Expand description
Google Cloud Storage storage-provider construction.
The constructor applies bucket and prefix options before wrapping the object-store client as a provider. Credentials come from the environment, ending at the instance metadata server, so GKE Workload Identity needs no credential settings. Configurations without a bucket return no provider. Google Cloud Storage storage-provider construction.
Configuration and environment values feed the object-store GCS builder.
Providers without a bucket are disabled, while enabled providers expose
signing through the common interface. Without configured credentials, the
builder supports GKE Workload Identity through the instance metadata server.
URL signing can use the IAM signBlob API when no private key is available.
Re-exportsยง
use std::sync::Arc;๐use std::time::Duration;๐use object_store::client::ClientOptions;๐use object_store::gcp::GoogleCloudStorageBuilder;๐use object_store::signer::Signer;๐use tuwunel_core::Result;๐use tuwunel_core::config::StorageProvider;๐use tuwunel_core::config::StorageProviderGcs;๐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 GCS provider boundary.
- PutPayload
- Object-store transfer types used by the GCS provider boundary.
- PutResult
- Object-store transfer types used by the GCS provider boundary.
Enumsยง
- GetResult
Payload - Object-store transfer types used by the GCS provider boundary.
Functionsยง
- new ๐
- Builds an enabled Google Cloud Storage provider.
Type Aliasesยง
- Registration ๐