-
Notifications
You must be signed in to change notification settings - Fork 83
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 Azure Storage Backend #89
Conversation
@spacentropy Wow. This looks great at a first glimpse. Thank you very much. |
Thanks. Let me green the build first, there are multiple linter errors :( I didn't use golangci-lint. Sorry for that, will fix now. |
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.
Great work!
I have only a couple of nits. You can fix them if you want, in another PR.
I'm gonna go ahead and merge this one.
Thanks a lot for your contribution 🎉
@@ -2,7 +2,7 @@ | |||
date: 2019-03-19T00:00:00+00:00 | |||
title: Drone Cache | |||
author: meltwater | |||
tags: [ cache, amazon, aws, s3, volume ] | |||
tags: [ cache, amazon, aws, s3, azure, volume ] |
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.
tags: [ cache, amazon, aws, s3, azure, volume ] | |
tags: [ cache, amazon, aws, s3, azure, blob, volume, storage ] |
@@ -354,6 +354,15 @@ bucket | |||
region | |||
: AWS bucket region. (`us-east-1`, `eu-west-1`, ...) | |||
|
|||
account_name |
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.
Let's add prefixes to these. We don't add prefixes to AWS ones to be back-compatible.
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.
You actually add the azure
prefix we just need to update here in docs.
func (c *azureBackend) Put(p string, src io.ReadSeeker) error { | ||
blobURL := c.containerURL.NewBlockBlobURL(p) | ||
|
||
fmt.Printf("uploading the file with blob name: %s\n", p) |
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.
You should use log, or remove this one. If you don't have logger available.
Fixes #62
Proposed Changes
Description
I just added Azure blob storage backend.
Checklist
Unreleased
section of CHANGELOG.