| 35 | |
| 36 | template <> |
| 37 | inline 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 | |
| 49 | template <> |
no test coverage detected