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

Function getCredentials

tests/functional/backbeat/excludedDataStoreName.js:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18const s3 = bucketUtil.s3;
19
20async function getCredentials() {
21 const creds = await s3.config.credentials();
22 const credentials = {
23 accessKey: creds.accessKeyId,
24 secretKey: creds.secretAccessKey,
25 };
26 return credentials;
27}
28
29async function getS3Hostname() {
30 const s3Hostname = await s3.config.endpoint();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected