MCPcopy
hub / github.com/scality/cloudserver / getCredentials

Function getCredentials

tests/functional/backbeat/listLifecycleCurrents.js:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22let location = null;
23
24async function getCredentials() {
25 const creds = await s3.config.credentials();
26 const credentials = {
27 accessKey: creds.accessKeyId,
28 secretKey: creds.secretAccessKey,
29 };
30 return credentials;
31}
32
33async function getS3Hostname() {
34 const endpoint = await s3.config.endpoint();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected