-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add simple object storage package for s3 and swift #89
Conversation
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.
It would be nice if the common interface and its mock would be in the package too.
storage/s3.go
Outdated
s3config := s3Config(cfg) | ||
return &S3{ | ||
cfg: cfg, s3client: s3.New(s3config), s3uploader: s3manager.NewUploader(s3config), | ||
retryWaitDuration: time.Second, retryAttempts: 3, |
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.
Shouldn't those two fields be configurable ?
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.
Actually after thinking I'm wondering if it's not the package use who should be responsible of retrying a Size() command (waiting for eventual consistency right after an upload) What do you think?
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.
mmmh if the service is eventually consistent i find it pretty nice that the package offer this option. Otherwise it should be configurable.
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.
Hmmm ok :-)
Ok will do |
mock added |
No description provided.