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

Function restoreObject

tests/sur/quota.js:318–332  ·  view source on GitHub ↗
(bucket, key, size, callback)

Source from the content-addressed store, hash-verified

316}
317
318function restoreObject(bucket, key, size, callback) {
319 return s3Client.send(new RestoreObjectCommand({
320 Bucket: bucket,
321 Key: key,
322 RestoreRequest: {
323 Days: 1,
324 },
325 })).then(data => {
326 if (!s3Config.isQuotaInflightEnabled()) {
327 mockScuba.incrementBytesForBucket(bucket, size);
328 }
329 return callback(null, data);
330 })
331 .catch(callback);
332}
333
334function multiObjectDelete(bucket, keys, size, callback) {
335 if (!s3Config.isQuotaInflightEnabled()) {

Callers 1

quota.jsFile · 0.85

Calls 3

sendMethod · 0.80

Tested by

no test coverage detected