Module object_store::gcp
source · Expand description
An object store implementation for Google Cloud Storage
§Multi-part uploads
Multi-part uploads can be initiated with the ObjectStore::put_multipart method. Data passed to the writer is automatically buffered to meet the minimum size requirements for a part. Multiple parts are uploaded concurrently.
If the writer fails for any reason, you may have parts uploaded to GCS but not used that you may be charged for. Use the ObjectStore::abort_multipart method to abort the upload and drop those unneeded parts. In addition, you may wish to consider implementing automatic clean up of unused parts that are older than one week.
§Using HTTP/2
Google Cloud Storage supports both HTTP/2 and HTTP/1. HTTP/1 is used by default because it allows much higher throughput in our benchmarks (see #5194). HTTP/2 can be enabled by setting crate::ClientConfigKey::Http1Only to false.
Structs§
- A Google Cloud Storage Credential
- Interface for Google Cloud Storage.
- Configure a connection to Google Cloud Storage.
Enums§
- Configuration keys for
GoogleCloudStorageBuilder