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

Method ports

src/common/resources.cpp:2041–2049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2039
2040
2041Option<Value::Ranges> Resources::ports() const
2042{
2043 Option<Value::Ranges> value = get<Value::Ranges>("ports");
2044 if (value.isSome()) {
2045 return value.get();
2046 } else {
2047 return None();
2048 }
2049}
2050
2051
2052Option<Value::Ranges> Resources::ephemeral_ports() const

Callers 2

applyMethod · 0.45
operator==Function · 0.45

Calls 3

NoneClass · 0.85
isSomeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected