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

Function gcpLocationConstraintAssert

lib/Config.js:187–204  ·  view source on GitHub ↗
(location, locationObj)

Source from the content-addressed store, hash-verified

185}
186
187function gcpLocationConstraintAssert(location, locationObj) {
188 const {
189 gcpEndpoint,
190 bucketName,
191 mpuBucketName,
192 } = locationObj.details;
193 const stringFields = [
194 gcpEndpoint,
195 bucketName,
196 mpuBucketName,
197 ];
198 stringFields.forEach(field => {
199 if (field !== undefined) {
200 assert(typeof field === 'string',
201 `bad config: ${field} must be a string`);
202 }
203 });
204}
205
206function azureGetStorageAccountName(location, locationDetails) {
207 const { azureStorageAccountName } = locationDetails;

Callers 1

locationConstraintAssertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected