Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kalidor
Copy link
Contributor

@kalidor kalidor commented Mar 17, 2022

This commit allow requesting B2 API directly using s3 code.
See: https://help.backblaze.com/hc/en-us/articles/360047629713-Using-the-AWS-Go-SDK-with-B2

@kalidor
Copy link
Contributor Author

kalidor commented Mar 19, 2022

This commit allow the use of

"b2": "appKey:SecretKey:bucket:endpoint"

This will generate s3 lowlevel configuration for interacting with B2, and it works well.
b2 code (pkg/blobserver/b2) is removed since not used (because not working anymore).

@aviau
Copy link
Member

aviau commented Mar 21, 2022

Few small nits but otherwise lgtm, thanks for working on this. I'll merge once comments are fixed.

@MichaHoffmann
Copy link
Member

looks good

@aviau
Copy link
Member

aviau commented Apr 6, 2022

lgtm. I started CI and will merge on success

@aviau
Copy link
Member

aviau commented Apr 6, 2022

Looks like tests are failing! Please fix them and ping me when done.

* Adding 'vendor' argument to generate configuration.
* Update json testcases
@MichaHoffmann
Copy link
Member

Hey @kalidor

are you still working on this? Test failure looks unrelated and just "go mod tidy" missing

@kalidor
Copy link
Contributor Author

kalidor commented Apr 22, 2022

I saw the tests failure. I don't work on this since my last commit. Moreover, I don't know what to do to fix the tests failed...

@MichaHoffmann
Copy link
Member

I saw the tests failure. I don't work on this since my last commit. Moreover, I don't know what to do to fix the tests failed...

The test failure is unrelated flakiness in the FUSE thing. I think you could run go mod tidy and commit your changes and then at least the tests/tidy should succeed.

@MichaHoffmann
Copy link
Member

I just created a B2 account and will give this a manual test later today!

@MichaHoffmann
Copy link
Member

I just created a B2 account and will give this a manual test later today!

Data syncs successfully to B2

Copy link
Member

@MichaHoffmann MichaHoffmann left a comment

Choose a reason for hiding this comment

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

I've been using this for a few weeks now; works as expected

@kalidor kalidor requested a review from aviau June 14, 2022 07:21
@bradfitz bradfitz merged commit ef8cb04 into perkeep:master Jun 17, 2022
@kalidor kalidor deleted the b2_using_s3_aws_sdk branch June 22, 2022 12:45
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.

4 participants