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

Function parse

src/messages/flags.hpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36template <>
37inline Try<mesos::internal::ImageGcConfig> parse(const std::string& value)
38{
39 // Convert from string or file to JSON.
40 Try<JSON::Object> json = parse<JSON::Object>(value);
41 if (json.isError()) {
42 return Error(json.error());
43 }
44
45 return protobuf::parse<mesos::internal::ImageGcConfig>(json.get());
46}
47
48
49template <>

Callers 10

verifyModuleMethod · 0.50
apiMethod · 0.50
schedulerMethod · 0.50
machineFunction · 0.50
initializeMethod · 0.50
_registerSlaveMethod · 0.50
_reregisterSlaveMethod · 0.50
mainFunction · 0.50
createMethod · 0.50
createMethod · 0.50

Calls 4

errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected