17 #ifndef __INTERNAL_DEVOLVE_HPP__ 18 #define __INTERNAL_DEVOLVE_HPP__ 20 #include <google/protobuf/message.h> 54 CommandInfo
devolve(
const v1::CommandInfo& command);
55 ContainerID
devolve(
const v1::ContainerID& containerId);
56 Credential
devolve(
const v1::Credential& credential);
57 DrainConfig
devolve(
const v1::DrainConfig& drainConfig);
58 DrainInfo
devolve(
const v1::DrainInfo& drainInfo);
59 DurationInfo
devolve(
const google::protobuf::Duration& duration);
60 ExecutorID
devolve(
const v1::ExecutorID& executorId);
61 FrameworkID
devolve(
const v1::FrameworkID& frameworkId);
62 FrameworkInfo
devolve(
const v1::FrameworkInfo& frameworkInfo);
64 InverseOffer
devolve(
const v1::InverseOffer& inverseOffer);
65 Offer
devolve(
const v1::Offer& offer);
68 Resource
devolve(
const v1::Resource& resource);
69 ResourceProviderID
devolve(
const v1::ResourceProviderID& resourceProviderId);
71 const v1::ResourceProviderInfo& resourceProviderInfo);
72 Resources
devolve(
const v1::Resources& resources);
73 SlaveID
devolve(
const v1::AgentID& agentId);
74 SlaveInfo
devolve(
const v1::AgentInfo& agentInfo);
75 TaskID
devolve(
const v1::TaskID& taskId);
94 template <
typename T1,
typename T2>
95 google::protobuf::RepeatedPtrField<T1>
devolve(
96 google::protobuf::RepeatedPtrField<T2> t2s)
98 google::protobuf::RepeatedPtrField<T1> t1s;
100 foreach (
const T2& t2, t2s) {
101 t1s.Add()->CopyFrom(
devolve(t2));
110 #endif // __INTERNAL_DEVOLVE_HPP__
Result< ProcessStatus > status(pid_t pid)
Definition: proc.hpp:166
mesos::v1::scheduler::Call Call
Definition: mesos.hpp:2851
Operation
Definition: cgroups.hpp:444
mesos::v1::scheduler::Event Event
Definition: mesos.hpp:2852
CommandInfo devolve(const v1::CommandInfo &command)
Definition: attributes.hpp:24
mesos::v1::scheduler::Response Response
Definition: mesos.hpp:2854