17 #ifndef __MASTER_QUOTA_HPP__
18 #define __MASTER_QUOTA_HPP__
22 #include <google/protobuf/repeated_field.h>
70 const mesos::quota::QuotaInfo info;
89 const std::string role;
97 const mesos::quota::QuotaRequest&
request);
103 const std::string& role,
104 const google::protobuf::RepeatedPtrField<Resource>& resources);
107 namespace validation {
123 #endif // __MASTER_QUOTA_HPP__
Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
Sets quota for a role.
Definition: quota.hpp:61
Try< bool > perform(Registry *registry, hashset< SlaveID > *slaveIDs)
RemoveQuota(const std::string &_role)
UpdateQuota(const mesos::quota::QuotaInfo "aInfo)
Removes quota for a role.
Definition: quota.hpp:80
Option< Error > quotaInfo(const mesos::quota::QuotaInfo "aInfo)
Try< bool > perform(Registry *registry, hashset< SlaveID > *slaveIDs)
Try< mesos::quota::QuotaInfo > createQuotaInfo(const mesos::quota::QuotaRequest &request)
Creates a QuotaInfo protobuf from the QuotaRequest protobuf.
Definition: registrar.hpp:45