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

Function foreach

src/csi/service_manager.cpp:231–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229 }
230
231 foreach (const Service& service, services) {
232 // Each service is served by the first container providing the service. See
233 // `CSIPluginInfo` in `mesos.proto` for details.
234 foreach (const CSIPluginContainerInfo& container, info.containers()) {
235 if (container.services().end() != std::find(
236 container.services().begin(),
237 container.services().end(),
238 service)) {
239 serviceContainers[service] =
240 getContainerId(info, containerPrefix, container);
241
242 break;
243 }
244 }
245
246 CHECK(serviceContainers.contains(service))
247 << service << " not found for CSI plugin type '" << info.type()
248 << "' and name '" << info.name() << "'";
249 }
250}
251
252

Callers

nothing calls this directly

Calls 15

findFunction · 0.85
getContainerIdFunction · 0.85
parseContainerPathFunction · 0.85
FailureClass · 0.85
getContainerInfoPathFunction · 0.85
getContainerInfoFunction · 0.85
NothingClass · 0.85
deferFunction · 0.85
startsWithFunction · 0.85
typeMethod · 0.80
atMethod · 0.80

Tested by

no test coverage detected