manager using credentials (#11078)

Added overload to manager() to connect cluster using credentials (username/password)
This commit is contained in:
sanjaywadhwani
2016-09-09 23:15:33 +09:00
committed by Masahiro Wakame
parent 4f1cd4f385
commit 88ae500371
+8
View File
@@ -159,6 +159,14 @@ declare module 'couchbase' {
* Creates a manager allowing the management of a Couchbase cluster.
*/
manager(): ClusterManager;
/**
* Creates a manager allowing the management of a Couchbase cluster using credentials.
* @param username The username for your cluster.
* @param password The password for your cluster.
*/
manager(username: string, password: string): ClusterManager;
/**
* Open a bucket to perform operations. This will begin the handshake process immediately and operations will complete later. Subscribe to the connect event to be alerted when the connection is ready, though be aware operations can be successfully queued before this.