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

Function enableVersioning

tests/utapi/awsNodeSdk.js:77–83  ·  view source on GitHub ↗
(bucket, enable, cb)

Source from the content-addressed store, hash-verified

75}
76
77function enableVersioning(bucket, enable, cb) {
78 const versioningStatus = { Status: enable ? 'Enabled' : 'Disabled' };
79 const params = { Bucket: bucket, VersioningConfiguration: versioningStatus };
80 s3Client.send(new PutBucketVersioningCommand(params))
81 .then(() => cb(null))
82 .catch(cb);
83}
84
85async function deleteVersionList(versionList, bucket) {
86 if (versionList === undefined || versionList.length === 0) {

Callers 1

awsNodeSdk.jsFile · 0.70

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected