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

Function foreachvalue

src/examples/test_csi_plugin.cpp:1338–1345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1336Option<VolumeInfo> TestCSIPlugin::findVolumeByName(const string& name)
1337{
1338 foreachvalue (const VolumeInfo& volumeInfo, volumes) {
1339 const string volumeId =
1340 volumeIdPath ? getVolumePath(volumeInfo.capacity, name) : name;
1341
1342 if (volumeInfo.id == volumeId) {
1343 return volumeInfo;
1344 }
1345 }
1346
1347 return None();
1348}

Callers

nothing calls this directly

Calls 1

getVolumePathFunction · 0.85

Tested by

no test coverage detected