Apache Mesos
|
#include <mesos.hpp>
Public Member Functions | |
MockAuthorizer () | |
virtual | ~MockAuthorizer () |
MOCK_METHOD1 (authorized, process::Future< bool >(const authorization::Request &request)) | |
MOCK_METHOD2 (getObjectApprover, process::Future< process::Owned< ObjectApprover >>(const Option< authorization::Subject > &subject, const authorization::Action &action)) | |
![]() | |
virtual | ~Authorizer () |
virtual process::Future< bool > | authorized (const authorization::Request &request)=0 |
Checks with the identity server back end whether request is allowed by the policies of the identity server, i.e. More... | |
virtual process::Future < process::Owned < ObjectApprover > > | getObjectApprover (const Option< authorization::Subject > &subject, const authorization::Action &action)=0 |
Creates an ObjectApprover which can synchronously check authorization on an object. More... | |
Additional Inherited Members | |
![]() | |
static Try< Authorizer * > | create (const std::string &name) |
Factory method used to create instances of authorizer which are loaded from the ModuleManager . More... | |
static Try< Authorizer * > | create (const ACLs &acls) |
Factory method used to create instances of the default 'local' authorizer. More... | |
![]() | |
Authorizer () | |
mesos::internal::tests::MockAuthorizer::MockAuthorizer | ( | ) |
|
virtual |
mesos::internal::tests::MockAuthorizer::MOCK_METHOD1 | ( | authorized | , |
process::Future< bool > | const authorization::Request &request | ||
) |
mesos::internal::tests::MockAuthorizer::MOCK_METHOD2 | ( | getObjectApprover | , |
process::Future< process::Owned< ObjectApprover >> | const Option< authorization::Subject > &subject, const authorization::Action &action | ||
) |