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

Function createGetLoggingRequest

tests/unit/api/bucketGetLogging.js:49–61  ·  view source on GitHub ↗
(bucketName, headers = {})

Source from the content-addressed store, hash-verified

47}
48
49function createGetLoggingRequest(bucketName, headers = {}) {
50 return {
51 bucketName,
52 namespace,
53 headers: {
54 host: `${bucketName}.s3.amazonaws.com`,
55 ...headers,
56 },
57 url: '/?logging',
58 query: { logging: '' },
59 actionImplicitDenies: false,
60 };
61}
62
63function createValidLoggingXML(targetBucket, targetPrefix = 'logs/') {
64 return '<?xml version="1.0" encoding="UTF-8"?>' +

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected