17 #ifndef __MASTER_VALIDATION_HPP__
18 #define __MASTER_VALIDATION_HPP__
22 #include <google/protobuf/repeated_field.h>
47 namespace validation {
113 namespace scheduler {
132 const google::protobuf::RepeatedPtrField<Resource>& resources);
140 const google::protobuf::RepeatedPtrField<Resource>& resources);
174 const TaskInfo& task,
210 const TaskGroupInfo& taskGroup,
211 const ExecutorInfo& executor,
225 const TaskGroupInfo& taskGroup,
226 const ExecutorInfo& executor);
246 const google::protobuf::RepeatedPtrField<OfferID>& offerIds,
253 const google::protobuf::RepeatedPtrField<OfferID>& offerIds,
260 namespace operation {
264 const Offer::Operation::Reserve& reserve,
272 const Offer::Operation::Unreserve& unreserve,
283 const Offer::Operation::Create&
create,
295 const Offer::Operation::Destroy&
destroy,
314 #endif // __MASTER_VALIDATION_HPP__
Option< Error > validateExecutorID(const ExecutorInfo &executor)
Option< Error > validate(const google::protobuf::RepeatedPtrField< Resource > &resources)
Definition: protobuf_utils.hpp:251
Option< Error > validate(const Offer::Operation::Reserve &reserve, const Option< process::http::authentication::Principal > &principal, const protobuf::slave::Capabilities &agentCapabilities, const Option< FrameworkInfo > &frameworkInfo=None())
InverseOffer * getInverseOffer(Master *master, const OfferID &offerId)
mesos::v1::scheduler::Call Call
Definition: mesos.hpp:2583
Definition: resources.hpp:79
Slave * getSlave(Master *master, const SlaveID &slaveId)
Option< Error > validateResources(const TaskInfo &task)
Option< Error > reregisterSlave(const ReregisterSlaveMessage &message)
Option< Error > validate(const ExecutorInfo &executor)
Option< Error > validate(const mesos::scheduler::Call &call, const Option< process::http::authentication::Principal > &principal=None())
Definition: hashmap.hpp:38
Option< Error > validateInverseOffers(const google::protobuf::RepeatedPtrField< OfferID > &offerIds, Master *master, Framework *framework)
Option< Error > validate(const mesos::FrameworkInfo &frameworkInfo)
Option< Error > validateKillPolicy(const TaskInfo &task)
Option< Error > validateRoles(const mesos::FrameworkInfo &frameworkInfo)
Option< Error > validateType(const ExecutorInfo &executor)
process::Future< Nothing > destroy(const std::string &hierarchy, const std::string &cgroup="/")
Option< Error > validate(const TaskGroupInfo &taskGroup, const ExecutorInfo &executor, Framework *framework, Slave *slave, const Resources &offered)
Option< Error > validateTaskGroupAndExecutorResources(const TaskGroupInfo &taskGroup, const ExecutorInfo &executor)
Option< Error > validate(const google::protobuf::RepeatedPtrField< OfferID > &offerIds, Master *master, Framework *framework)
Option< Error > validateCheck(const TaskInfo &task)
Option< Error > validateHealthCheck(const TaskInfo &task)
Definition: master.hpp:117
Option< Error > validate(const mesos::master::Call &call, const Option< process::http::authentication::Principal > &principal=None())
Option< Error > validateTaskAndExecutorResources(const TaskInfo &task)
Offer * getOffer(Master *master, const OfferID &offerId)
Option< Error > validateSingleResourceProvider(const google::protobuf::RepeatedPtrField< Resource > &resources)
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
Definition: master.hpp:2151
Option< Error > validateResources(const ExecutorInfo &executor)
Definition: master.hpp:392
Option< Error > validate(const TaskInfo &task, Framework *framework, Slave *slave, const Resources &offered)
Option< Error > registerSlave(const RegisterSlaveMessage &message)