◆ constructor()
CloudRequestEngine::constructor | ( | { resourceKey, licenseKey, baseURL='https:} | ) |
inline
Constructor for CloudRequestEngine.
- Parameters
-
- {object} - options options object
- {string} - options.resourceKey resourcekey for cloud service
- {string} - options.licenseKey licensekey for cloud service
- {string} - options.baseURL url the cloud service is located at if overriding default
◆ fetchProperties()
CloudRequestEngine::fetchProperties ( ) inlineInternal process to fetch all the properties available under a resourcekey.
- Returns
- {Promise} properties from the cloud server
◆ getData()
CloudRequestEngine::getData ( flowData ) inlineInternal function to get data from cloud service.
- Parameters
-
- {FlowData} - flowData FlowData used to extract evidence and send to cloud service for processing
- Returns
- {Promise} result of processing
◆ getEvidenceKeys()
CloudRequestEngine::getEvidenceKeys ( ) inlineInternal function to get evidenceKeys used by cloud resourcekey.
- Returns
- {Array} evidence key list
◆ processInternal()
CloudRequestEngine::processInternal ( flowData ) inlineInternal process for cloud engine Returns raw JSON as a "cloud" property in "cloud".
- Parameters
-
- {FlowData} - flowData flowData to process
- Returns
- {Promise} data from cloud service
◆ ready()
CloudRequestEngine::ready ( ) inlineFunction for testing if the cloud engine is ready Checks to see if properties and evidence keys have been fetched.
- Returns
- {Promise} whether ready