Implement storage.Backend for S3 storage (#750)

* Implement storage.Backend for S3 storage

* Adapt S3 storage test after refactor, Fix skiped minio tests

* Add defer to Close calls in s3.getter methods

* CR fixes

* Fix doc align

* Tweak err checks

* Fix parse test for S3 configs and cleanup error messages in storage.s3
This commit is contained in:
Tomasz Tomalak
2018-10-16 03:46:08 +02:00
committed by Marwan Sulaiman
parent f5259a388d
commit 480d8c8e8c
17 changed files with 544 additions and 275 deletions
+11
View File
@@ -0,0 +1,11 @@
package config
// S3Config specifies the properties required to use S3 as the storage backend
type S3Config struct {
TimeoutConf
Region string `validate:"required" envconfig:"AWS_REGION"`
Key string `validate:"required" envconfig:"AWS_ACCESS_KEY_ID"`
Secret string `validate:"required" envconfig:"AWS_SECRET_ACCESS_KEY"`
Token string `envconfig:"AWS_SESSION_TOKEN"`
Bucket string `validate:"required" envconfig:"ATHENS_S3_BUCKET_NAME"`
}