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

Function foreachvalue

src/master/readonly_handler.cpp:205–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203
204 writer->field("unreachable_tasks", [this](JSON::ArrayWriter* writer) {
205 foreachvalue (const Owned<Task>& task, framework_->unreachableTasks) {
206 // Skip unauthorized tasks.
207 if (!approvers_->approved<VIEW_TASK>(*task, framework_->info)) {
208 continue;
209 }
210
211 writer->element(*task);
212 }
213 });
214
215 writer->field("completed_tasks", [this](JSON::ArrayWriter* writer) {

Callers 5

operator()Method · 0.70
frameworksMethod · 0.70
stateMethod · 0.70
stateSummaryMethod · 0.70
foreachFunction · 0.70

Calls 15

FullFrameworkWriterClass · 0.85
createAgentResponseFunction · 0.85
asV1ProtobufClass · 0.85
elementMethod · 0.80
fieldMethod · 0.80
CopyFromMethod · 0.80
jsonFunction · 0.70
modelFunction · 0.70
valueMethod · 0.45
acceptMethod · 0.45
idMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected