-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore(storage): migrate top-level methods #6433
chore(storage): migrate top-level methods #6433
Conversation
@@ -44,7 +44,7 @@ type storageClient interface { | |||
// Top-level methods. | |||
|
|||
GetServiceAccount(ctx context.Context, project string, opts ...storageOption) (string, error) | |||
CreateBucket(ctx context.Context, project string, attrs *BucketAttrs, opts ...storageOption) (*BucketAttrs, error) | |||
CreateBucket(ctx context.Context, project, bucket string, attrs *BucketAttrs, opts ...storageOption) (*BucketAttrs, error) |
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.
Nice catch on this
@tritone @noahdietz Any thoughts on adding Moving to the new interface detaches referencing This stems from a failed test unable to find retryConfig from Client |
I think that is fine. Did you have a particular concern? I did notice though that the actual API calls still reference
Are we able to/should we remove the BucketIterator |
Great callout, Noah, Also spoke to Chris and realized my original question is more of a test issue. The call is retrieving retryConfig with no concerns, so removing the now-outdated test. |
Migrate few top-level methods to transport-agnostic interface.
*Interface refactoring
Shown in the current implementation, bucketName is referenced from
BucketHandle
, so proposing to includebucket string
as an arg for methodCreateBucket()
Integration tests pass locally