Implement anonymous uploads, fixes #4250 (#4259)

This commit is contained in:
Remco Verhoef
2017-05-04 20:03:56 -07:00
committed by Harshavardhana
parent 4c63fd06c6
commit 01e9adc4b3
4 changed files with 170 additions and 0 deletions

View File

@@ -31,6 +31,9 @@ type GatewayLayer interface {
AnonGetObject(bucket, object string, startOffset int64, length int64, writer io.Writer) (err error)
AnonGetObjectInfo(bucket, object string) (objInfo ObjectInfo, err error)
AnonPutObject(bucket string, object string, size int64, data io.Reader, metadata map[string]string, sha256sum string) (ObjectInfo, error)
SetBucketPolicies(string, policy.BucketAccessPolicy) error
GetBucketPolicies(string) (policy.BucketAccessPolicy, error)
DeleteBucketPolicies(string) error