13 #ifndef __V1_PARSE_HPP__
14 #define __V1_PARSE_HPP__
35 return protobuf::parse<mesos::v1::CapabilityInfo>(json.
get());
47 return protobuf::parse<mesos::v1::RLimitInfo>(json.
get());
61 return protobuf::parse<mesos::v1::TaskGroupInfo>(json.
get());
75 return protobuf::parse<mesos::v1::TaskInfo>(json.
get());
80 #endif // __V1_PARSE_HPP__
Definition: errorbase.hpp:35
Try< mesos::ACLs > parse(const std::string &value)
Returns the OCI v1 descriptor, image index, image manifest and image configuration from the given str...
Definition: parse.hpp:36
void json(JSON::ObjectWriter *writer, const Task &task)
static Try error(const E &e)
Definition: try.hpp:42
#define flags
Definition: decoder.hpp:18
bool isError() const
Definition: try.hpp:71
const T & get() const
Definition: try.hpp:73