Apache Mesos
|
Functions | |
bool | isStrictSubroleOf (const std::string &left, const std::string &right) |
Returns true iff left is a strict subrole of right . More... | |
Try< std::vector< std::string > > | parse (const std::string &text) |
Parses Roles from text in the form "role1,role2,role3". More... | |
Option< Error > | validate (const std::string &role) |
Validates the given role name. More... | |
Option< Error > | validate (const std::vector< std::string > &roles) |
Validates the given list of roles. More... | |
bool mesos::roles::isStrictSubroleOf | ( | const std::string & | left, |
const std::string & | right | ||
) |
Returns true iff left
is a strict subrole of right
.
left
is a strict subrole of right
if left
is not equal to right
, and left
is a descendant of right
in the role hierarchy.
Examples:
foo
is not a strict subrole of foo
.foo/bar
is a strict subrole of foo
.foobar
is not a strict subrole of foo
.
|
inline |
Parses Roles from text in the form "role1,role2,role3".
text | String to be parsed |
Parses Roles from text in the form "role1,role2,role3".