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

Method getAzureEndpoint

lib/Config.js:2108–2117  ·  view source on GitHub ↗
(locationConstraint)

Source from the content-addressed store, hash-verified

2106 }
2107
2108 getAzureEndpoint(locationConstraint) {
2109 let azureStorageEndpoint =
2110 process.env[`${locationConstraint}_AZURE_STORAGE_ENDPOINT`] ||
2111 this.locationConstraints[locationConstraint].details.azureStorageEndpoint;
2112 if (!azureStorageEndpoint.endsWith('/')) {
2113 // append the trailing slash
2114 azureStorageEndpoint = `${azureStorageEndpoint}/`;
2115 }
2116 return azureStorageEndpoint;
2117 }
2118
2119 getAzureStorageAccountName(locationConstraint) {
2120 const accountName = azureGetStorageAccountName(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected