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

Function foreachpair

src/slave/http.cpp:1403–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1401 "reserved_resources",
1402 [&totalResources, &approvers](JSON::ObjectWriter* writer) {
1403 foreachpair (const string& role,
1404 const Resources& resources,
1405 totalResources.reservations()) {
1406 if (approvers->approved<VIEW_ROLE>(role)) {
1407 writer->field(role, resources);
1408 }
1409 }
1410 });
1411
1412 writer->field("unreserved_resources", totalResources.unreserved());

Callers

nothing calls this directly

Calls 5

asV1ProtobufClass · 0.85
StringClass · 0.85
fieldMethod · 0.80
elementMethod · 0.80
foreachvalueFunction · 0.70

Tested by

no test coverage detected