17 #ifndef __MESOS_AUTHORIZER_AUTHORIZER_HPP__ 18 #define __MESOS_AUTHORIZER_AUTHORIZER_HPP__ 23 #include <mesos/authorizer/authorizer.pb.h> 81 Object(
const ContainerID& _container_id)
107 Object(
const FrameworkInfo& _framework_info)
120 Object(
const ExecutorInfo& _executor_info,
121 const FrameworkInfo& _framework_info)
134 Object(
const TaskInfo& _task_info,
const FrameworkInfo& _framework_info)
147 Object(
const Task& _task,
const FrameworkInfo& _framework_info)
161 const ExecutorInfo& _executor_info,
162 const FrameworkInfo& _framework_info,
163 const CommandInfo& _command_info,
164 const ContainerID& _container_id)
178 const ExecutorInfo& _executor_info,
179 const FrameworkInfo& _framework_info,
180 const ContainerID& _container_id)
193 Object(
const authorization::Object&
object)
194 :
value(object.has_value() ? &object.
value() : nullptr),
196 object.has_framework_info() ? &object.
framework_info() : nullptr),
197 task(object.has_task() ? &object.
task() : nullptr),
200 object.has_executor_info() ? &object.
executor_info() : nullptr),
205 object.has_command_info() ? &object.
command_info() : nullptr),
207 object.has_container_id() ? &object.
container_id() : nullptr),
312 const authorization::Request&
request) = 0;
336 const authorization::Action& action) = 0;
344 #endif // __MESOS_AUTHORIZER_AUTHORIZER_HPP__ Object(const authorization::Object &object)
Definition: authorizer.hpp:193
const std::string * value
Definition: authorizer.hpp:210
const MachineID * machine_id
Definition: authorizer.hpp:220
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...
Definition: authorizer.hpp:53
Object(const ExecutorInfo &_executor_info, const FrameworkInfo &_framework_info, const CommandInfo &_command_info, const ContainerID &_container_id)
Definition: authorizer.hpp:160
virtual Try< bool > approved(const Option< Object > &object) const noexcept=0
This method returns whether access to the specified object is authorized or not, or Error...
Object(const ExecutorInfo &_executor_info, const FrameworkInfo &_framework_info, const ContainerID &_container_id)
Definition: authorizer.hpp:177
Object(const FrameworkInfo &_framework_info)
Definition: authorizer.hpp:107
const Resource * resource
Definition: authorizer.hpp:217
const CommandInfo * command_info
Definition: authorizer.hpp:218
virtual ~ObjectApprover()=default
Object(const MachineID &_machine_id)
Definition: authorizer.hpp:94
Object(const std::string &_value)
Definition: authorizer.hpp:68
This interface is used to enable an identity service or any other back end to check authorization pol...
Definition: authorizer.hpp:268
const FrameworkInfo * framework_info
Definition: authorizer.hpp:211
Object(const ExecutorInfo &_executor_info, const FrameworkInfo &_framework_info)
Definition: authorizer.hpp:120
Object(const Task &_task, const FrameworkInfo &_framework_info)
Definition: authorizer.hpp:147
Object(const ContainerID &_container_id)
Definition: authorizer.hpp:81
const quota::QuotaInfo * quota_info
Definition: authorizer.hpp:215
Object()
Definition: authorizer.hpp:55
virtual ~Authorizer()
Definition: authorizer.hpp:294
const Task * task
Definition: authorizer.hpp:212
const TaskInfo * task_info
Definition: authorizer.hpp:213
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
This interface represents a function object returned by the authorizer which can be used locally (and...
Definition: authorizer.hpp:47
Object(const TaskInfo &_task_info, const FrameworkInfo &_framework_info)
Definition: authorizer.hpp:134
const ContainerID * container_id
Definition: authorizer.hpp:219
const WeightInfo * weight_info
Definition: authorizer.hpp:216
constexpr const char * name
Definition: shell.hpp:41
Authorizer()
Definition: authorizer.hpp:339
const ExecutorInfo * executor_info
Definition: authorizer.hpp:214