MCPcopy
hub / github.com/scality/cloudserver / configureBucketVersioning

Function configureBucketVersioning

tests/sur/quota.js:51–60  ·  view source on GitHub ↗
(bucket, cb)

Source from the content-addressed store, hash-verified

49}
50
51function configureBucketVersioning(bucket, cb) {
52 return s3Client.send(new PutBucketVersioningCommand({
53 Bucket: bucket,
54 VersioningConfiguration: {
55 Status: 'Enabled',
56 },
57 }))
58 .then(data => cb(null, data))
59 .catch(cb);
60}
61
62function putObjectLockConfiguration(bucket, cb) {
63 return s3Client.send(new PutObjectLockConfigurationCommand({

Callers 1

quota.jsFile · 0.85

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected