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

Added Support Backblaze #62

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Added Support Backblaze #62

wants to merge 9 commits into from

Conversation

dvriesman
Copy link

Included support to send and receive files to/from Backblaze


// List file/objects filter by given query. This just wraps the object-iterator
// returning full list of objects.
func (f *FS) List(ctx context.Context, q cloudstorage.Query) (*cloudstorage.ObjectsResponse, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am assuming these are not implemented because you didn't need them? Ie, would be available for implementation at some point as opposed to their api doesn't support it? Just curious.

Copy link
Author

Choose a reason for hiding this comment

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

Hi Araddon, I am looking at https://godoc.org/gopkg.in/kothar/go-backblaze.v0 and I found that there's a list method: func (b *Bucket) ListFileNames(startFileName string, maxFileCount int) (*ListFilesResponse, error). Maybe I could implement your interface using it. But I think that context doesn't matter in this case.

func TestConfig(t *testing.T) {

if config.Bucket == "" {
t.Logf("must provide BACKBLAZE_BUCKET, BACKBLAZE_ACCESS, BACKBLAZE_KEY env vars")
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment seems wrong? Should be BACKBLAZE_ACCOUNT ? not access?

Copy link
Author

Choose a reason for hiding this comment

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

Your're right. I fixed it.

@araddon
Copy link
Contributor

araddon commented Jun 15, 2018

I created backblaze account for testing, and added env vars to travis and running now https://travis-ci.org/lytics/cloudstorage

@codecov-io
Copy link

codecov-io commented Jun 15, 2018

Codecov Report

Merging #62 into master will decrease coverage by 44.41%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #62       +/-   ##
===========================================
- Coverage   64.89%   20.48%   -44.42%     
===========================================
  Files          13       13               
  Lines        1997     1997               
===========================================
- Hits         1296      409      -887     
- Misses        491     1522     +1031     
+ Partials      210       66      -144
Impacted Files Coverage Δ
awss3/store.go 0.29% <0%> (-72.92%) ⬇️
azure/store.go 0.3% <0%> (-69.21%) ⬇️
google/store.go 0.66% <0%> (-61.88%) ⬇️
sftp/store.go 13.62% <0%> (-48.04%) ⬇️
google/client.go 0% <0%> (-31.43%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2731960...9847dc2. Read the comment docs.

@dvriesman
Copy link
Author

Araddon, your test target does not match the actual code quality :) Could you review it to approve my request? Thank you.

@araddon
Copy link
Contributor

araddon commented Jun 20, 2018

Not entirely sure what is going on with this pr re the import paths? They can't be merged in while pointing to your personal fork. Is your local-directory structure mirroring this github path? ie

/home/dvriesman/go/src/github.com/lytics/cloudstorage

With the cloudstorage .git/config having an upstream pointing to github.com/lytics/cloudstorage and non-upstream pointing at your personal-repo fork?

@@ -20,8 +20,8 @@ import (
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3manager"

"github.com/lytics/cloudstorage"
"github.com/lytics/cloudstorage/csbufio"
"github.com/dvriesman/cloudstorage"
Copy link
Contributor

Choose a reason for hiding this comment

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

@dvriesman I assume this can not be merged here with changed import paths

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