Make BucketPolicy strictly typed

This commit is contained in:
Harshavardhana committed 2015-03-08 15:57:20 -07:00
1 parent 7b57797455
commit 01e98eb326
6 files changed
+19 -22

No files matched your search

+2 -2
View File
@@ -28,8 +28,8 @@ type Storage interface {
// Bucket Operations
ListBuckets() ([]BucketMetadata, error)
StoreBucket(bucket string) error
StoreBucketPolicy(bucket string, policy interface{}) error
GetBucketPolicy(bucket string) (interface{}, error)
StoreBucketPolicy(bucket string, p BucketPolicy) error
GetBucketPolicy(bucket string) (BucketPolicy, error)
// Object Operations
CopyObjectToWriter(w io.Writer, bucket string, object string) (int64, error)