MCPcopy Create free account
hub / github.com/apache/mesos / foreach

Function foreach

src/master/http.cpp:823–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821
822 RepeatedPtrField<Resource> volumes;
823 foreach (const JSON::Value& value, parse->values) {
824 Try<Resource> volume = ::protobuf::parse<Resource>(value);
825 if (volume.isError()) {
826 return BadRequest(
827 "Error in parsing 'volumes' query parameter in the request body: " +
828 volume.error());
829 }
830
831 volumes.Add()->CopyFrom(volume.get());
832 }
833
834 return _createVolumes(slaveId, volumes, principal);
835}

Callers 1

_operationMethod · 0.70

Calls 15

BadRequestClass · 0.85
convertResourceFormatFunction · 0.85
asyncFunction · 0.85
ForbiddenClass · 0.85
protobufFunction · 0.85
CopyFromMethod · 0.80
associateMethod · 0.80
insertMethod · 0.80
errorMethod · 0.65
sendMethod · 0.65
ErrorFunction · 0.50
stringifyFunction · 0.50

Tested by

no test coverage detected