MCPcopy Create free account
hub / github.com/apache/mesos / collectAuthorizations

Function collectAuthorizations

src/common/authorization.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56Future<bool> collectAuthorizations(const vector<Future<bool>>& authorizations)
57{
58 return process::collect(authorizations)
59 .then([](const vector<bool>& results) -> Future<bool> {
60 return std::find(results.begin(), results.end(), false) == results.end();
61 });
62}
63
64
65const Option<Subject> createSubject(const Option<Principal>& principal)

Callers 3

TEST_FFunction · 0.85
authorizeMethod · 0.85

Calls 5

collectFunction · 0.85
findFunction · 0.85
thenMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TEST_FFunction · 0.68