Skip to main content

Module gcs

Module gcs 

Source
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ยง

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

Functionsยง

new ๐Ÿ”’
Builds an enabled Google Cloud Storage provider.

Type Aliasesยง

Registration ๐Ÿ”’