mirror of
https://github.com/minio/minio.git
synced 2025-04-04 03:40:30 -04:00
This is done by not making the methods of the BucketMetaState interface as methods (via type nesting) on the type implementing RPCs (s3PeerAPIHandlers).
This commit is contained in:
parent
9c2cfb5cb6
commit
d44e9d6da9
@ -27,7 +27,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type s3PeerAPIHandlers struct {
|
type s3PeerAPIHandlers struct {
|
||||||
*localBMS
|
bms BucketMetaState
|
||||||
}
|
}
|
||||||
|
|
||||||
func registerS3PeerRPCRouter(mux *router.Router) error {
|
func registerS3PeerRPCRouter(mux *router.Router) error {
|
||||||
|
@ -54,7 +54,7 @@ func (s3 *s3PeerAPIHandlers) SetBucketNotificationPeer(args *SetBNPArgs, reply *
|
|||||||
return errInvalidToken
|
return errInvalidToken
|
||||||
}
|
}
|
||||||
|
|
||||||
return s3.UpdateBucketNotification(args)
|
return s3.bms.UpdateBucketNotification(args)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetBLPArgs - Arguments collection to SetBucketListenerPeer RPC call
|
// SetBLPArgs - Arguments collection to SetBucketListenerPeer RPC call
|
||||||
@ -74,7 +74,7 @@ func (s3 *s3PeerAPIHandlers) SetBucketListenerPeer(args *SetBLPArgs, reply *Gene
|
|||||||
return errInvalidToken
|
return errInvalidToken
|
||||||
}
|
}
|
||||||
|
|
||||||
return s3.UpdateBucketListener(args)
|
return s3.bms.UpdateBucketListener(args)
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventArgs - Arguments collection for Event RPC call
|
// EventArgs - Arguments collection for Event RPC call
|
||||||
@ -96,7 +96,7 @@ func (s3 *s3PeerAPIHandlers) Event(args *EventArgs, reply *GenericReply) error {
|
|||||||
return errInvalidToken
|
return errInvalidToken
|
||||||
}
|
}
|
||||||
|
|
||||||
return s3.SendEvent(args)
|
return s3.bms.SendEvent(args)
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetBPPArgs - Arguments collection for SetBucketPolicyPeer RPC call
|
// SetBPPArgs - Arguments collection for SetBucketPolicyPeer RPC call
|
||||||
@ -117,5 +117,5 @@ func (s3 *s3PeerAPIHandlers) SetBucketPolicyPeer(args *SetBPPArgs, reply *Generi
|
|||||||
return errInvalidToken
|
return errInvalidToken
|
||||||
}
|
}
|
||||||
|
|
||||||
return s3.UpdateBucketPolicy(args)
|
return s3.bms.UpdateBucketPolicy(args)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user