Implement BucketUpdater interface to call BucketMetaState methods. (#3375)

This commit is contained in:
Krishna Srinivas
2016-12-01 03:07:38 +05:30
committed by Harshavardhana
parent bc9509bc8a
commit 8021061bd8
3 changed files with 19 additions and 22 deletions

View File

@@ -37,6 +37,11 @@ type BucketMetaState interface {
SendEvent(args *EventArgs) error
}
// BucketUpdater - Interface implementer calls one of BucketMetaState's methods.
type BucketUpdater interface {
BucketUpdate(client BucketMetaState) error
}
// Type that implements BucketMetaState for local node.
type localBucketMetaState struct {
ObjectAPI func() ObjectLayer