MCPcopy
hub / github.com/scality/cloudserver / constructXml

Method constructXml

tests/unit/helpers.js:415–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413 }
414
415 constructXml() {
416 const xml = [];
417 xml.push('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
418 '<Tagging> <TagSet>');
419 Object.keys(this._tags).forEach(key => {
420 const value = this._tags[key];
421 xml.push(`<Tag><Key>${key}</Key><Value>${value}</Value></Tag>`);
422 });
423 xml.push('</TagSet> </Tagging>');
424 return xml.join('');
425 }
426
427 createObjectTaggingRequest(method, bucketName, objectName, body) {
428 const request = {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected