* Retrieves Orbit API token from the management database. * * The token is used to authenticate stat posting and * * @param {werelogs~Logger} log Request-scoped logger to be able to trace * initialization process * @param {function} callback Function called with (error, result) * * @retur
(log, callback)
| 21 | * @returns {undefined} |
| 22 | */ |
| 23 | function getStoredCredentials(log, callback) { |
| 24 | metadata.getObjectMD(managementDatabaseName, tokenConfigurationKey, {}, |
| 25 | log, callback); |
| 26 | } |
| 27 | |
| 28 | function issueCredentials(managementEndpoint, instanceId, log, callback) { |
| 29 | log.info('registering with API to get token'); |
no outgoing calls
no test coverage detected