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

Method copyObject

tests/unit/DummyService.js:103–115  ·  view source on GitHub ↗
(params, callback)

Source from the content-addressed store, hash-verified

101 return callback(null, retObj);
102 }
103 copyObject(params, callback) {
104 const retObj = {
105 CopyObjectResult: {
106 ETag: `"${uuidv4().replace(/-/g, '')}"`,
107 LastModified: new Date().toISOString(),
108 },
109 VersionId: null,
110 };
111 if (this.versioning) {
112 retObj.VersionId = uuidv4().replace(/-/g, '');
113 }
114 return callback(null, retObj);
115 }
116 // To-Do: add tests for other methods
117}
118

Callers 6

objectCopyFunction · 0.80
copyObjectAndSSEFunction · 0.80
arnPrefix.jsFile · 0.80
methodFunction · 0.80
object.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected