Skip to content

feat: add BucketStore trait for bucket create, delete and exists - #868

Open
Aditya1404Sal wants to merge 2 commits into
apache:mainfrom
Aditya1404Sal:feat/bucket-store
Open

Aditya1404Sal wants to merge 2 commits into
apache:mainfrom
Aditya1404Sal:feat/bucket-store

Conversation

@Aditya1404Sal

Copy link
Copy Markdown

Which issue does this PR close?

Closes #865.

Rationale for this change

See #865 please

What changes are included in this PR?

  • A new object_store::bucket::BucketStore trait with create_bucket, delete_bucket and
    bucket_exists, implemented for AmazonS3, GoogleCloudStorage and MicrosoftAzure.
  • GoogleCloudStorageBuilder::with_project_id and GoogleConfigKey::ProjectId
    (GOOGLE_PROJECT_ID), needed to create GCS buckets.
  • Unit tests for each provider, plus integration tests against the emulators CI already runs
    (LocalStack, fake-gcs-server and Azurite).

I'm happy to split this per provider if that's easier to review.

Are there any user-facing changes?

Yes, additive only: the new trait and the gcs project-id option. There are no breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support creating, deleting and checking for buckets (BucketStore)

1 participant