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

Method completeMultipartUpload

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

Source from the content-addressed store, hash-verified

77 return callback(null, retObj);
78 }
79 completeMultipartUpload(params, callback) {
80 const retObj = {
81 Bucket: params.Bucket,
82 Key: params.Key,
83 ETag: `"${uuidv4().replace(/-/g, '')}"`,
84 ContentLength: `${1024 * 1024 * 1024}`,
85 };
86 if (this.versioning) {
87 retObj.VersionId = uuidv4().replace(/-/g, '');
88 }
89 return callback(null, retObj);
90 }
91 upload(params, callback) {
92 this.putObject(params, callback);
93 }

Callers 5

mpuCompleteFunction · 0.80
arnPrefix.jsFile · 0.80
migration.jsFile · 0.80
methodFunction · 0.80
completeMpu.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected