-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(storage): add BucketName to BucketHandle #10127
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tritone
reviewed
May 10, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me. The go vet
check is failing on go fmt
, could you fix that?
The bucket name is currently only accessible via the Attrs() network call, and can be trivially returned from the bucket handle. I used BucketName instead of just Name, as ObjectHandle has both BucketName and ObjectName.
I used the web editor and left a stray tab. That should be resolved now. |
tritone
approved these changes
May 13, 2024
@tritone any blockers before merging this? |
Thanks! |
gcf-merge-on-green bot
pushed a commit
that referenced
this pull request
Jun 10, 2024
🤖 I have created a release *beep* *boop* --- ## [1.42.0](https://togithub.com/googleapis/google-cloud-go/compare/storage/v1.41.0...storage/v1.42.0) (2024-06-10) ### Features * **storage:** Add new package transfermanager. This package is intended for parallel uploads and downloads, and is in preview. It is not stable, and is likely to change. ([#10045](https://togithub.com/googleapis/google-cloud-go/issues/10045)) ([cde5cbb](https://togithub.com/googleapis/google-cloud-go/commit/cde5cbba3145d5a702683656a42158621234fe71)) * **storage:** Add bucket HierarchicalNamespace ([#10315](https://togithub.com/googleapis/google-cloud-go/issues/10315)) ([b92406c](https://togithub.com/googleapis/google-cloud-go/commit/b92406ccfadfdcee379e86d6f78c901d772401a9)), refs [#10146](https://togithub.com/googleapis/google-cloud-go/issues/10146) * **storage:** Add BucketName to BucketHandle ([#10127](https://togithub.com/googleapis/google-cloud-go/issues/10127)) ([203cc59](https://togithub.com/googleapis/google-cloud-go/commit/203cc599e5e2f2f821dc75b47c5a4c9073333f05)) ### Bug Fixes * **storage:** Set invocation headers on xml reads ([#10250](https://togithub.com/googleapis/google-cloud-go/issues/10250)) ([c87e1ab](https://togithub.com/googleapis/google-cloud-go/commit/c87e1ab6f9618b8b3f4d0005ac159abd87b0daaf)) ### Documentation * **storage:** Update autoclass doc ([#10135](https://togithub.com/googleapis/google-cloud-go/issues/10135)) ([e4b2737](https://togithub.com/googleapis/google-cloud-go/commit/e4b2737ddc16d3bf8139a6def7326ac905f62acd)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
husam-e
pushed a commit
to husam-e/google-cloud-go
that referenced
this pull request
Jun 11, 2024
🤖 I have created a release *beep* *boop* --- ## [1.42.0](https://togithub.com/googleapis/google-cloud-go/compare/storage/v1.41.0...storage/v1.42.0) (2024-06-10) ### Features * **storage:** Add new package transfermanager. This package is intended for parallel uploads and downloads, and is in preview. It is not stable, and is likely to change. ([googleapis#10045](https://togithub.com/googleapis/google-cloud-go/issues/10045)) ([cde5cbb](https://togithub.com/googleapis/google-cloud-go/commit/cde5cbba3145d5a702683656a42158621234fe71)) * **storage:** Add bucket HierarchicalNamespace ([googleapis#10315](https://togithub.com/googleapis/google-cloud-go/issues/10315)) ([b92406c](https://togithub.com/googleapis/google-cloud-go/commit/b92406ccfadfdcee379e86d6f78c901d772401a9)), refs [googleapis#10146](https://togithub.com/googleapis/google-cloud-go/issues/10146) * **storage:** Add BucketName to BucketHandle ([googleapis#10127](https://togithub.com/googleapis/google-cloud-go/issues/10127)) ([203cc59](https://togithub.com/googleapis/google-cloud-go/commit/203cc599e5e2f2f821dc75b47c5a4c9073333f05)) ### Bug Fixes * **storage:** Set invocation headers on xml reads ([googleapis#10250](https://togithub.com/googleapis/google-cloud-go/issues/10250)) ([c87e1ab](https://togithub.com/googleapis/google-cloud-go/commit/c87e1ab6f9618b8b3f4d0005ac159abd87b0daaf)) ### Documentation * **storage:** Update autoclass doc ([googleapis#10135](https://togithub.com/googleapis/google-cloud-go/issues/10135)) ([e4b2737](https://togithub.com/googleapis/google-cloud-go/commit/e4b2737ddc16d3bf8139a6def7326ac905f62acd)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The bucket name is currently only accessible via the Attrs() network call, and can be trivially returned from the bucket handle. Today we have to pass around a
BucketHandle
and the bucket name separately.I used BucketName instead of just Name, as ObjectHandle has both BucketName and ObjectName.