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

Function buildXML

lib/api/listParts.js:56–65  ·  view source on GitHub ↗
(xmlParams, xml, encodingFn)

Source from the content-addressed store, hash-verified

54*/
55
56function buildXML(xmlParams, xml, encodingFn) {
57 xmlParams.forEach(param => {
58 if (param.value !== undefined) {
59 xml.push(`<${param.tag}>${encodingFn(param.value)}</${param.tag}>`);
60 } else if (param.tag !== 'NextPartNumberMarker' &&
61 param.tag !== 'PartNumberMarker') {
62 xml.push(`<${param.tag}/>`);
63 }
64 });
65}
66
67/**
68 * listParts - List parts of an open multipart upload

Callers 1

listPartsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected