addModule(opts) → {Promise.<ModuleInfo>}
Install a new module into the runtime
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<ModuleInfo>
- the node module info
getIcon(opts) → {Promise.<Buffer>}
Gets a node icon
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<Buffer>
- the icon file as a Buffer or null if no icon available
getIconList(opts) → {Promise.<IconList>}
Gets the list of all icons available in the modules installed within the runtime
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<IconList>
- the list of all icons
getModuleCatalog(opts) → {Promise.<Object>}
Gets a modules message catalog
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<Object>
- the message catalog
getModuleCatalogs(opts) → {Promise.<Object>}
Gets all registered module message catalogs
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<Object>
- the message catalogs
getModuleInfo(opts) → {Promise.<ModuleInfo>}
Gets the info of a node module
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<ModuleInfo>
- the node module info
getNodeConfig(opts) → {Promise.<String>}
Gets an individual node's html content
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<String>
- the node html content
getNodeConfigs(opts) → {Promise.<String>}
Gets all node html content
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<String>
- the node html content
getNodeInfo(opts) → {Promise.<NodeInfo>}
Gets the info of an individual node set
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<NodeInfo>
- the node information
getNodeList(opts) → {Promise.<NodeList>}
Gets the list of node modules installed in the runtime
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<NodeList>
- the list of node modules
removeModule(opts) → {Promise}
Removes a module from the runtime
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise
- resolves when complete
setModuleState(opts) → {Promise.<ModuleInfo>}
Enables or disables a module in the runtime
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<ModuleInfo>
- the module info object
setNodeSetState(opts) → {Promise.<ModuleInfo>}
Enables or disables a n individual node-set in the runtime
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object
|
|
Returns:
- Type:
-
Promise.<ModuleInfo>
- the module info object