MCPcopy Index your code
hub / github.com/scality/cloudserver / createBucket

Function createBucket

tests/sur/quota.js:39–49  ·  view source on GitHub ↗
(bucket, locked, cb)

Source from the content-addressed store, hash-verified

37}
38
39function createBucket(bucket, locked, cb) {
40 const config = {
41 Bucket: bucket,
42 };
43 if (locked) {
44 config.ObjectLockEnabledForBucket = true;
45 }
46 return s3Client.send(new CreateBucketCommand(config))
47 .then(data => cb(null, data))
48 .catch(cb);
49}
50
51function configureBucketVersioning(bucket, cb) {
52 return s3Client.send(new PutBucketVersioningCommand({

Callers 1

quota.jsFile · 0.70

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected