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

Function _createBucketPutRequest

tests/multipleBackend/objectCopy.js:21–34  ·  view source on GitHub ↗
(bucketName, bucketLoc)

Source from the content-addressed store, hash-verified

19const fileLocation = 'scality-internal-file';
20
21function _createBucketPutRequest(bucketName, bucketLoc) {
22 const post = bucketLoc ? '<?xml version="1.0" encoding="UTF-8"?>' +
23 '<CreateBucketConfiguration ' +
24 'xmlns="http://s3.amazonaws.com/doc/2006-03-01/">' +
25 `<LocationConstraint>${bucketLoc}</LocationConstraint>` +
26 '</CreateBucketConfiguration>' : '';
27 return new DummyRequest({
28 bucketName,
29 namespace,
30 headers: { host: `${bucketName}.s3.amazonaws.com` },
31 url: '/',
32 post,
33 });
34}
35
36function _createObjectCopyRequest(destBucketName, objectKey) {
37 const params = {

Callers 1

copySetupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected