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

Function foreach

src/slave/containerizer/fetcher.cpp:169–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167static Try<Nothing> validateUris(const CommandInfo& commandInfo)
168{
169 foreach (const CommandInfo::URI& uri, commandInfo.uris()) {
170 Try<Nothing> uriValidation = Fetcher::validateUri(uri.value());
171 if (uriValidation.isError()) {
172 return Error(uriValidation.error());
173 }
174
175 if (uri.has_output_file()) {
176 Try<Nothing> outputFileValidation =
177 Fetcher::validateOutputFile(uri.output_file());
178 if (outputFileValidation.isError()) {
179 return Error(outputFileValidation.error());
180 }
181 }
182 }
183
184 return Nothing();
185}

Callers

nothing calls this directly

Calls 15

NoneClass · 0.85
deferFunction · 0.85
asyncFunction · 0.85
fetchSizeFunction · 0.85
cacheMethod · 0.80
referenceMethod · 0.80
atMethod · 0.80
completionMethod · 0.80
isReferencedMethod · 0.80
errorMethod · 0.65
ErrorFunction · 0.50
removeFunction · 0.50

Tested by

no test coverage detected