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

Method foreach

src/examples/test_csi_plugin.cpp:231–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 // TODO(jieyu): Consider not using CHECKs here.
230 Try<list<string>> paths = fs::list(path::join(workDir, "*-*"));
231 foreach (const string& path, CHECK_NOTERROR(paths)) {
232 Try<VolumeInfo> createdVolume = CHECK_NOTERROR(parseVolumePath(path));
233 volumes.put(createdVolume->id, createdVolume.get());
234 usedCapacity += createdVolume->capacity;
235 }
236
237 // Create preprovisioned volumes if they have not existed yet.
238 foreachpair (const string& name, const Bytes& capacity, _volumes) {

Callers

nothing calls this directly

Calls 3

parseVolumePathFunction · 0.85
putMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected