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

Function getRegistryHost

src/docker/spec.cpp:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149
150string getRegistryHost(const string& registry)
151{
152 if (registry.empty()) {
153 return "";
154 }
155
156 vector<string> split = strings::split(registry, ":", 2);
157
158 return split[0];
159}
160
161
162Try<hashmap<string, Config::Auth>> parseAuthConfig(

Callers 4

TEST_FFunction · 0.85
_pullMethod · 0.85
foreachFunction · 0.85
getRegistrySchemeFunction · 0.85

Calls 2

splitFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected