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

Function copyObject

tests/utapi/awsNodeSdk.js:70–75  ·  view source on GitHub ↗
(bucket, key, cb)

Source from the content-addressed store, hash-verified

68}
69
70function copyObject(bucket, key, cb) {
71 const params = { Bucket: bucket, CopySource: `${bucket}/${key}`, Key: `${key}-copy` };
72 s3Client.send(new CopyObjectCommand(params))
73 .then(() => cb(null))
74 .catch(cb);
75}
76
77function enableVersioning(bucket, enable, cb) {
78 const versioningStatus = { Status: enable ? 'Enabled' : 'Disabled' };

Callers 1

awsNodeSdk.jsFile · 0.70

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected