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

Function _pushChildren

lib/api/apiUtils/bucket/bucketWebsite.js:376–382  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

374 const routingRules = config.getRoutingRules();
375
376 function _pushChildren(obj) {
377 Object.keys(obj).forEach(element => {
378 const xmlElem = `${element.charAt(0).toUpperCase()}` +
379 `${element.slice(1)}`;
380 xml.push(`<${xmlElem}>${escapeForXml(obj[element])}</${xmlElem}>`);
381 });
382 }
383 xml.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',
384 '<WebsiteConfiguration xmlns=' +
385 '"http://s3.amazonaws.com/doc/2006-03-01/">');

Callers 3

convertToXmlFunction · 0.85
getXmlMethod · 0.85
getXmlMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected