new BazaarConnection()
Sets default values of uninitialized BazaarConnection - returned by createConnection
- Source:
Methods
createEnvironment(environment, callback)
Create a new environment.
Parameters:
Name | Type | Description |
---|---|---|
environment |
object | |
callback |
function | optional |
- Source:
deleteEnvironment(environmentId, callback)
Delete existing environment.
Parameters:
Name | Type | Description |
---|---|---|
environmentId |
string | |
callback |
function | optional |
- Source:
getEnvironments(callback)
Get a list of environments belonging to the authenticated user
Parameters:
Name | Type | Description |
---|---|---|
callback |
function | optional |
- Source:
getPeers(spec, callback)
Get peers
Parameters:
Name | Type | Description |
---|---|---|
spec |
string | May be one of: own, shared, favorite, public, all |
callback |
function |
- Source:
handleRequest(options, callback)
Helper method - handles switch between callback and promises
Parameters:
Name | Type | Description |
---|---|---|
options |
object | |
callback |
function | optional |
- Source:
modifyEnvironment(change, callback)
Modify existing environment.
Parameters:
Name | Type | Description |
---|---|---|
change |
object | |
callback |
function | optional |
- Source:
updatePeerName(peerId, name, callback)
Update the name of a peer
Parameters:
Name | Type | Description |
---|---|---|
peerId |
string | |
name |
string | |
callback |
function | optional |
- Source:
updatePeerScope(peerId, scope, callback)
Update the scope of a peer
Parameters:
Name | Type | Description |
---|---|---|
peerId |
string | |
scope |
string | |
callback |
function | optional |
- Source: