Class: ClusterManager

ClusterManager

Class for performing management operations against a cluster.

<private> new ClusterManager(cluster, username, password)

Parameters:
Name Type Description
cluster
username
password
Since:
  • 2.0.0 (stability: committed)

Methods

createBucket(name, opts, callback)

Creates a new bucket on this cluster. Note that the callback is invoked after the bucket is created, but it may not be immediately accessible due to server spin-up time.

Parameters:
Name Type Description
name
opts
callback
Since:
  • 2.0.0 (stability: committed)

getUser(callback)

Retrieves a specific RBAC built-in user.

Parameters:
Name Type Description
callback
Since:
  • 2.3.5 (stability: committed)

getUsers(callback)

Retrieves a list of RBAC built-in users on this cluster.

Parameters:
Name Type Description
callback
Since:
  • 2.3.2 (stability: committed)

listBuckets(callback)

Retrieves a list of buckets present on this cluster.

Parameters:
Name Type Description
callback
Since:
  • 2.0.0 (stability: committed)

removeBucket(name, callback)

Removes a bucket from the cluster.

Parameters:
Name Type Description
name
callback
Since:
  • 2.0.0 (stability: committed)

removeUser(callback)

Removes an RBAC built-in user from the cluster.

Parameters:
Name Type Description
callback
Since:
  • 2.3.2 (stability: committed)

upsertUser(settings, callback)

Upserts a new RBAC built-in user to the cluster.

Parameters:
Name Type Description
settings
callback
Since:
  • 2.3.2 (stability: committed)