(location, locationObj)
| 185 | } |
| 186 | |
| 187 | function 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 | |
| 206 | function azureGetStorageAccountName(location, locationDetails) { |
| 207 | const { azureStorageAccountName } = locationDetails; |
no outgoing calls
no test coverage detected