MCPcopy Index your code
hub / github.com/scality/cloudserver / getStoredCredentials

Function getStoredCredentials

lib/management/credentials.js:23–26  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

21 * @returns {undefined}
22 */
23function getStoredCredentials(log, callback) {
24 metadata.getObjectMD(managementDatabaseName, tokenConfigurationKey, {},
25 log, callback);
26}
27
28function issueCredentials(managementEndpoint, instanceId, log, callback) {
29 log.info('registering with API to get token');

Callers 2

patchConfigurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected