From 4a9b205a15d94812fcbb1efc052eab413331a38a Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 2 Dec 2016 14:34:13 -0800 Subject: [PATCH] docs: Add missing comments for exported functions. --- cmd/s3-peer-rpc-handlers.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/s3-peer-rpc-handlers.go b/cmd/s3-peer-rpc-handlers.go index 24424ced3..a7f5bb82a 100644 --- a/cmd/s3-peer-rpc-handlers.go +++ b/cmd/s3-peer-rpc-handlers.go @@ -48,6 +48,9 @@ type SetBucketNotificationPeerArgs struct { NCfg *notificationConfig } +// BucketUpdate - implements bucket notification updates, +// the underlying operation is a network call updates all +// the peers participating in bucket notification. func (s *SetBucketNotificationPeerArgs) BucketUpdate(client BucketMetaState) error { return client.UpdateBucketNotification(s) } @@ -72,6 +75,9 @@ type SetBucketListenerPeerArgs struct { LCfg []listenerConfig } +// BucketUpdate - implements bucket listener updates, +// the underlying operation is a network call updates all +// the peers participating in listen bucket notification. func (s *SetBucketListenerPeerArgs) BucketUpdate(client BucketMetaState) error { return client.UpdateBucketListener(s) } @@ -118,6 +124,9 @@ type SetBucketPolicyPeerArgs struct { PChBytes []byte } +// BucketUpdate - implements bucket policy updates, +// the underlying operation is a network call updates all +// the peers participating for new set/unset policies. func (s *SetBucketPolicyPeerArgs) BucketUpdate(client BucketMetaState) error { return client.UpdateBucketPolicy(s) }