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

Function _createObjectPutRequest

tests/multipleBackend/objectCopy.js:47–56  ·  view source on GitHub ↗
(bucketName, objectKey, body)

Source from the content-addressed store, hash-verified

45}
46
47function _createObjectPutRequest(bucketName, objectKey, body) {
48 const sourceObjPutParams = {
49 bucketName,
50 namespace,
51 objectKey,
52 headers: { host: `${bucketName}.s3.amazonaws.com` },
53 url: '/',
54 };
55 return new DummyRequest(sourceObjPutParams, body);
56}
57
58function copySetup(params, cb) {
59 const { sourceBucket, sourceLocation, sourceKey, destBucket,

Callers 1

copySetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected