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

Function parseIntegrityChecks

lib/Config.js:541–570  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

539}
540
541function parseIntegrityChecks(config) {
542 const integrityChecks = {
543 'bucketPutACL': true,
544 'bucketPutCors': true,
545 'bucketPutEncryption': true,
546 'bucketPutLifecycle': true,
547 'bucketPutNotification': true,
548 'bucketPutObjectLock': true,
549 'bucketPutPolicy': true,
550 'bucketPutReplication': true,
551 'bucketPutVersioning': true,
552 'bucketPutWebsite': true,
553 'multiObjectDelete': true,
554 'objectPutACL': true,
555 'objectPutLegalHold': true,
556 'objectPutTagging': true,
557 'objectPutRetention': true,
558 };
559
560 if (config && config.integrityChecks) {
561 for (const method in integrityChecks) {
562 if (method in config.integrityChecks) {
563 assert(typeof config.integrityChecks[method] == 'boolean', `bad config: ${method} not boolean`);
564 integrityChecks[method] = config.integrityChecks[method];
565 }
566 }
567 }
568
569 return integrityChecks;
570}
571
572const serverAccessLogsModes = {
573 DISABLED: 'DISABLED',

Callers 2

_getConfigMethod · 0.85
Config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected