17 #ifndef __MESSAGES_FLAGS_HPP__ 18 #define __MESSAGES_FLAGS_HPP__ 32 #include "messages/flags.pb.h" 45 return protobuf::parse<mesos::internal::ImageGcConfig>(json.
get());
58 return protobuf::parse<mesos::internal::Firewall>(json.
get());
71 return protobuf::parse<mesos::internal::ContainerDNSInfo>(json.
get());
84 return protobuf::parse<mesos::internal::SlaveCapabilities>(json.
get());
94 const ImageGcConfig& imageGcConfig)
96 return stream << imageGcConfig.DebugString();
101 std::ostream& stream,
102 const Firewall& rules)
104 return stream << rules.DebugString();
109 std::ostream& stream,
110 const ContainerDNSInfo& dns)
112 return stream << dns.DebugString();
117 std::ostream& stream,
118 const SlaveCapabilities& slaveCapabilities)
120 return stream << slaveCapabilities.DebugString();
126 #endif // __MESSAGES_FLAGS_HPP__ Definition: errorbase.hpp:36
T & get()&
Definition: try.hpp:80
void json(JSON::ObjectWriter *writer, const asV1Protobuf &protobuf)
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
static Try error(const E &e)
Definition: try.hpp:43
Definition: attributes.hpp:24
bool isError() const
Definition: try.hpp:78
std::ostream & operator<<(std::ostream &stream, const SecurePathOrValue &flag)
Definition: flag.hpp:113