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

Method fetch

src/uri/fetcher.cpp:105–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104
105Future<Nothing> Fetcher::fetch(
106 const URI& uri,
107 const string& directory,
108 const Option<string>& data,
109 const Option<string>& outputFileName) const
110{
111 if (!pluginsByScheme.contains(uri.scheme())) {
112 return Failure("Scheme '" + uri.scheme() + "' is not supported");
113 }
114
115 return pluginsByScheme.at(uri.scheme())->fetch(
116 uri,
117 directory,
118 data,
119 outputFileName);
120}
121
122
123Future<Nothing> Fetcher::fetch(

Callers

nothing calls this directly

Calls 5

FailureClass · 0.85
atMethod · 0.80
fetchMethod · 0.65
containsMethod · 0.45
schemeMethod · 0.45

Tested by

no test coverage detected