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

Function foreach

src/master/readonly_handler.cpp:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215 writer->field("completed_tasks", [this](JSON::ArrayWriter* writer) {
216 foreach (const Owned<Task>& task, framework_->completedTasks) {
217 // Skip unauthorized tasks.
218 if (!approvers_->approved<VIEW_TASK>(*task, framework_->info)) {
219 continue;
220 }
221
222 writer->element(*task);
223 }
224 });
225
226 // Model all of the offers associated with a framework.

Callers 1

operator()Method · 0.70

Calls 15

convertResourceFormatFunction · 0.85
ProtobufClass · 0.85
QuotaClass · 0.85
asV1ProtobufClass · 0.85
elementMethod · 0.80
fieldMethod · 0.80
getOrElseMethod · 0.80
consumedQuotaMethod · 0.80
offeredMethod · 0.80
foreachvalueFunction · 0.70
getMethod · 0.45
allocatedMethod · 0.45

Tested by

no test coverage detected