(bucket)
| 68 | } |
| 69 | |
| 70 | function _checkBackendVersioningImplemented(bucket) { |
| 71 | const bucketLocation = bucket.getLocationConstraint(); |
| 72 | const bucketLocationType = config.getLocationConstraintType(bucketLocation); |
| 73 | |
| 74 | // backend types known not to support versioning |
| 75 | if (versioningNotImplBackends[bucketLocationType]) { |
| 76 | return false; |
| 77 | } |
| 78 | |
| 79 | // versioning disabled per-location constraint |
| 80 | const lc = config.getLocationConstraint(bucketLocation); |
| 81 | if (lc.details && !lc.details.supportsVersioning) { |
| 82 | return false; |
| 83 | } |
| 84 | |
| 85 | return true; |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Bucket Put Versioning - Create or update bucket Versioning |
no test coverage detected