Apache Mesos
Namespaces | Functions
roles.hpp File Reference
#include <string>
#include <vector>
#include <stout/error.hpp>
#include <stout/option.hpp>
#include <stout/try.hpp>

Go to the source code of this file.

Namespaces

 mesos
 
 mesos::roles
 

Functions

bool mesos::roles::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 > > mesos::roles::parse (const std::string &text)
 Parses Roles from text in the form "role1,role2,role3". More...
 
std::vector< std::string > mesos::roles::ancestors (const std::string &role)
 Returns the ancestor roles for the role. More...
 
Option< Errormesos::roles::validate (const std::string &role)
 Validates the given role name. More...
 
Option< Errormesos::roles::validate (const std::vector< std::string > &roles)
 Validates the given list of roles. More...