#include <authorizer.hpp>
virtual mesos::internal::LocalAuthorizer::~LocalAuthorizer |
( |
| ) |
|
|
virtual |
virtual process::Future<bool> mesos::internal::LocalAuthorizer::authorized |
( |
const authorization::Request & |
request | ) |
|
|
virtual |
Checks with the identity server back end whether request
is allowed by the policies of the identity server, i.e.
request.subject
can perform request.action
with request.object
. For details on how the request is built and what its parts are, refer to "authorizer.proto".
- Parameters
-
request | authorization::Request instance packing all the parameters needed to verify whether a subject can perform a given action with an object. |
- Returns
true
if the action is allowed, the future is set to true
, otherwise false
. A failed future indicates a problem processing the request, and it might be retried in the future.
Implements mesos::Authorizer.
static Try<Authorizer*> mesos::internal::LocalAuthorizer::create |
( |
const ACLs & |
acls | ) |
|
|
static |
static Try<Authorizer*> mesos::internal::LocalAuthorizer::create |
( |
const Parameters & |
parameters | ) |
|
|
static |
The documentation for this class was generated from the following file: