This module is a middleware that sits between module:api/'0.1'/cli and module:api/'0.1'/clusternator

This module manages/organizes user input for user management, and passes it to module:api/'0.1'/clusternator

Source:
Source:
Source:

Members

(inner, constant) Q

The following is duplicate code

Source:

Methods

(inner) afterLogin(loginDetails) → {Q.Promise}

Parameters:
Name Type Description
loginDetails Object
Source:
Returns:
Type
Q.Promise

(inner) certUpload(privateKey, certificate, certId, chainopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
privateKey string
certificate string
certId string
chain string <optional>
Source:
Returns:
Type
Q.Promise

(inner) changePassword(usernameopt, passwordopt, newPasswordopt, confirmopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
newPassword string <optional>
confirm string <optional>
Source:
Returns:
Type
Q.Promise

(inner) checkConfigured() → {Q.Promise.<Object>}

resolves if a user has a config file

Source:
Returns:
Type
Q.Promise.<Object>

(inner) checkConfiguredAndLoggedIn() → {Q.Promise.<Object>}

resolves if a user has a config file, and seems to be logged in

Source:
Returns:
Type
Q.Promise.<Object>

(inner) createUser(usernameopt, passwordopt, confirmopt, authorityopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
confirm string <optional>
authority number <optional>
Source:
Returns:
Type
Q.Promise

(inner) deploy(name) → {Q.Promise}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Q.Promise

(inner) describeServices() → {Q.Promise}

Source:
Returns:
Type
Q.Promise

(inner) getAppDefNotFound(dPath) → {function}

Parameters:
Name Type Description
dPath string
Source:
Returns:
Type
function

(inner) getUserName(c, usernameopt) → {string}

Parameters:
Name Type Attributes Description
c Object
username string <optional>
Source:
Returns:
Type
string

(inner) loadUserPublicKeys(keyPath) → {Promise.<Array.<string>>}

Loads all the contents of a given path, it assumes they're public keys

Parameters:
Name Type Description
keyPath string
Source:
Returns:
Type
Promise.<Array.<string>>

(inner) login(usernameopt, passwordopt)

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
Source:

(inner) promptCreateUser(config) → {Q.Promise}

Parameters:
Name Type Description
config Object
Source:
Returns:
Type
Q.Promise

(inner) saveLoginDetails(loginDetails) → {Q.promise}

Parameters:
Name Type Description
loginDetails Object
Source:
Returns:
Type
Q.promise

(inner) stop(name) → {Request|Promise.<T>|*}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Request | Promise.<T> | *

(inner) update(name) → {Q.Promise}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Q.Promise

(inner) userHasToken(user) → {boolean}

Parameters:
Name Type Description
user Object
Source:
Returns:
Type
boolean

Members

(inner, constant) Q

The following is duplicate code

Source:

Methods

(inner) afterLogin(loginDetails) → {Q.Promise}

Parameters:
Name Type Description
loginDetails Object
Source:
Returns:
Type
Q.Promise

(inner) certUpload(privateKey, certificate, certId, chainopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
privateKey string
certificate string
certId string
chain string <optional>
Source:
Returns:
Type
Q.Promise

(inner) changePassword(usernameopt, passwordopt, newPasswordopt, confirmopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
newPassword string <optional>
confirm string <optional>
Source:
Returns:
Type
Q.Promise

(inner) checkConfigured() → {Q.Promise.<Object>}

resolves if a user has a config file

Source:
Returns:
Type
Q.Promise.<Object>

(inner) checkConfiguredAndLoggedIn() → {Q.Promise.<Object>}

resolves if a user has a config file, and seems to be logged in

Source:
Returns:
Type
Q.Promise.<Object>

(inner) createUser(usernameopt, passwordopt, confirmopt, authorityopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
confirm string <optional>
authority number <optional>
Source:
Returns:
Type
Q.Promise

(inner) deploy(name) → {Q.Promise}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Q.Promise

(inner) describeServices() → {Q.Promise}

Source:
Returns:
Type
Q.Promise

(inner) getAppDefNotFound(dPath) → {function}

Parameters:
Name Type Description
dPath string
Source:
Returns:
Type
function

(inner) getUserName(c, usernameopt) → {string}

Parameters:
Name Type Attributes Description
c Object
username string <optional>
Source:
Returns:
Type
string

(inner) loadUserPublicKeys(keyPath) → {Promise.<Array.<string>>}

Loads all the contents of a given path, it assumes they're public keys

Parameters:
Name Type Description
keyPath string
Source:
Returns:
Type
Promise.<Array.<string>>

(inner) login(usernameopt, passwordopt)

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
Source:

(inner) promptCreateUser(config) → {Q.Promise}

Parameters:
Name Type Description
config Object
Source:
Returns:
Type
Q.Promise

(inner) saveLoginDetails(loginDetails) → {Q.promise}

Parameters:
Name Type Description
loginDetails Object
Source:
Returns:
Type
Q.promise

(inner) stop(name) → {Request|Promise.<T>|*}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Request | Promise.<T> | *

(inner) update(name) → {Q.Promise}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Q.Promise

(inner) userHasToken(user) → {boolean}

Parameters:
Name Type Description
user Object
Source:
Returns:
Type
boolean

Members

(inner, constant) Q

The following is duplicate code

Source:

Methods

(inner) afterLogin(loginDetails) → {Q.Promise}

Parameters:
Name Type Description
loginDetails Object
Source:
Returns:
Type
Q.Promise

(inner) certUpload(privateKey, certificate, certId, chainopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
privateKey string
certificate string
certId string
chain string <optional>
Source:
Returns:
Type
Q.Promise

(inner) changePassword(usernameopt, passwordopt, newPasswordopt, confirmopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
newPassword string <optional>
confirm string <optional>
Source:
Returns:
Type
Q.Promise

(inner) checkConfigured() → {Q.Promise.<Object>}

resolves if a user has a config file

Source:
Returns:
Type
Q.Promise.<Object>

(inner) checkConfiguredAndLoggedIn() → {Q.Promise.<Object>}

resolves if a user has a config file, and seems to be logged in

Source:
Returns:
Type
Q.Promise.<Object>

(inner) createUser(usernameopt, passwordopt, confirmopt, authorityopt) → {Q.Promise}

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
confirm string <optional>
authority number <optional>
Source:
Returns:
Type
Q.Promise

(inner) deploy(name) → {Q.Promise}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Q.Promise

(inner) describeServices() → {Q.Promise}

Source:
Returns:
Type
Q.Promise

(inner) getAppDefNotFound(dPath) → {function}

Parameters:
Name Type Description
dPath string
Source:
Returns:
Type
function

(inner) getUserName(c, usernameopt) → {string}

Parameters:
Name Type Attributes Description
c Object
username string <optional>
Source:
Returns:
Type
string

(inner) loadUserPublicKeys(keyPath) → {Promise.<Array.<string>>}

Loads all the contents of a given path, it assumes they're public keys

Parameters:
Name Type Description
keyPath string
Source:
Returns:
Type
Promise.<Array.<string>>

(inner) login(usernameopt, passwordopt)

Parameters:
Name Type Attributes Description
username string <optional>
password string <optional>
Source:

(inner) promptCreateUser(config) → {Q.Promise}

Parameters:
Name Type Description
config Object
Source:
Returns:
Type
Q.Promise

(inner) saveLoginDetails(loginDetails) → {Q.promise}

Parameters:
Name Type Description
loginDetails Object
Source:
Returns:
Type
Q.promise

(inner) stop(name) → {Request|Promise.<T>|*}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Request | Promise.<T> | *

(inner) update(name) → {Q.Promise}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
Q.Promise

(inner) userHasToken(user) → {boolean}

Parameters:
Name Type Description
user Object
Source:
Returns:
Type
boolean