(s3config, rule)
| 17 | } |
| 18 | |
| 19 | function _getStorageClasses(s3config, rule) { |
| 20 | if (rule.storageClass) { |
| 21 | return rule.storageClass.split(','); |
| 22 | } |
| 23 | const { replicationEndpoints } = s3config; |
| 24 | // If no storage class, use the given default endpoint or the sole endpoint |
| 25 | if (replicationEndpoints.length > 0) { |
| 26 | const endPoint = |
| 27 | replicationEndpoints.find(endpoint => endpoint.default) || replicationEndpoints[0]; |
| 28 | return [endPoint.site]; |
| 29 | } |
| 30 | return undefined; |
| 31 | } |
| 32 | |
| 33 | function _getReplicationInfo(s3config, rule, replicationConfig, content, operationType, |
| 34 | objectMD, bucketMD) { |
no outgoing calls
no test coverage detected