Skip to content
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

blob: use new URLMux pattern for OpenBucket #1282

Merged
merged 6 commits into from
Feb 12, 2019

Conversation

zombiezen
Copy link
Contributor

Design discussion in #1209.

A follow-up PR will shorten the tutorial to use blob.OpenBucket.

Updates #1174

Copy link
Contributor

@vangent vangent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good! A few comments, mostly the same 2 over and over.

blob/azureblob/azureblob.go Outdated Show resolved Hide resolved
blob/azureblob/azureblob_test.go Show resolved Hide resolved
blob/blob.go Show resolved Hide resolved
blob/blob.go Show resolved Hide resolved
blob/blob.go Show resolved Hide resolved
blob/gcsblob/gcsblob_test.go Show resolved Hide resolved
blob/memblob/memblob.go Outdated Show resolved Hide resolved
blob/s3blob/s3blob.go Outdated Show resolved Hide resolved

if region := q["region"]; len(region) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put these back into the default implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you help me understand why they're here? They seem to only be for constructing the session and aren't specific to the S3 bucket. I removed them because it seemed like based on our new design principles that someone who wants to override these would create a new s3blob.URLOpener.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I failed to follow up on this comment. I think it's important to include these, will send a PR.

blob/s3blob/s3blob_test.go Show resolved Hide resolved
@vangent
Copy link
Contributor

vangent commented Feb 11, 2019

Can you sync to HEAD as well? Looks like there are some conflicts, hopefully not too hairy.

@zombiezen
Copy link
Contributor Author

PTAL

go.mod Outdated Show resolved Hide resolved
blob/fileblob/fileblob.go Outdated Show resolved Hide resolved
@zombiezen zombiezen merged commit c18b5cb into google:master Feb 12, 2019
@zombiezen zombiezen deleted the blob-urlmux branch February 12, 2019 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA has been signed!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants