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

Function json

3rdparty/libprocess/src/authenticator.cpp:38–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38static void json(JSON::ObjectWriter* writer, const Principal& principal)
39{
40 if (principal.value.isSome()) {
41 writer->field("value", principal.value.get());
42 }
43 if (!principal.claims.empty()) {
44 writer->field("claims", principal.claims);
45 }
46}
47
48
49std::ostream& operator<<(std::ostream& stream, const Principal& principal)

Callers

nothing calls this directly

Calls 4

fieldMethod · 0.80
isSomeMethod · 0.45
getMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected