#include <rbac_policy.h>
Public Member Functions | |
Permission & | operator= (Permission &&other) noexcept |
Permission ()=default | |
Permission (Permission &&other) noexcept | |
std::string | ToString () const |
Static Public Member Functions | |
static Permission | MakeAndPermission (std::vector< std::unique_ptr< Permission >> permissions) |
static Permission | MakeAnyPermission () |
static Permission | MakeDestIpPermission (CidrRange ip) |
static Permission | MakeDestPortPermission (int port) |
static Permission | MakeHeaderPermission (HeaderMatcher header_matcher) |
static Permission | MakeMetadataPermission (bool invert) |
static Permission | MakeNotPermission (Permission permission) |
static Permission | MakeOrPermission (std::vector< std::unique_ptr< Permission >> permissions) |
static Permission | MakePathPermission (StringMatcher string_matcher) |
static Permission | MakeReqServerNamePermission (StringMatcher string_matcher) |
Public Attributes | |
HeaderMatcher | header_matcher |
bool | invert = false |
CidrRange | ip |
std::vector< std::unique_ptr< Permission > > | permissions |
int | port |
StringMatcher | string_matcher |
RuleType | type = RuleType::kAnd |
Definition at line 55 of file rbac_policy.h.
|
strong |
Enumerator | |
---|---|
kAnd | |
kOr | |
kNot | |
kAny | |
kHeader | |
kPath | |
kDestIp | |
kDestPort | |
kMetadata | |
kReqServerName |
Definition at line 56 of file rbac_policy.h.
|
default |
|
noexcept |
Definition at line 158 of file rbac_policy.cc.
|
static |
Definition at line 83 of file rbac_policy.cc.
|
static |
Definition at line 107 of file rbac_policy.cc.
|
static |
Definition at line 129 of file rbac_policy.cc.
|
static |
Definition at line 136 of file rbac_policy.cc.
|
static |
Definition at line 113 of file rbac_policy.cc.
|
static |
Definition at line 143 of file rbac_policy.cc.
|
static |
Definition at line 99 of file rbac_policy.cc.
|
static |
Definition at line 91 of file rbac_policy.cc.
|
static |
Definition at line 121 of file rbac_policy.cc.
|
static |
Definition at line 150 of file rbac_policy.cc.
|
noexcept |
Definition at line 183 of file rbac_policy.cc.
std::string grpc_core::Rbac::Permission::ToString | ( | ) | const |
Definition at line 211 of file rbac_policy.cc.
HeaderMatcher grpc_core::Rbac::Permission::header_matcher |
Definition at line 91 of file rbac_policy.h.
Definition at line 99 of file rbac_policy.h.
CidrRange grpc_core::Rbac::Permission::ip |
Definition at line 93 of file rbac_policy.h.
std::vector<std::unique_ptr<Permission> > grpc_core::Rbac::Permission::permissions |
Definition at line 97 of file rbac_policy.h.
int grpc_core::Rbac::Permission::port |
Definition at line 94 of file rbac_policy.h.
StringMatcher grpc_core::Rbac::Permission::string_matcher |
Definition at line 92 of file rbac_policy.h.
RuleType grpc_core::Rbac::Permission::type = RuleType::kAnd |
Definition at line 90 of file rbac_policy.h.