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

Method disk

src/common/resources.cpp:2030–2038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2028
2029
2030Option<Bytes> Resources::disk() const
2031{
2032 Option<Value::Scalar> value = get<Value::Scalar>("disk");
2033 if (value.isSome()) {
2034 return Megabytes(static_cast<uint64_t>(value->value()));
2035 } else {
2036 return None();
2037 }
2038}
2039
2040
2041Option<Value::Ranges> Resources::ports() const

Callers 10

foreachFunction · 0.45
getResourceConversionsFunction · 0.45
compareResourceMetadataFunction · 0.45
addableFunction · 0.45
subtractableFunction · 0.45
validateMethod · 0.45
isPersistentVolumeMethod · 0.45
isDiskMethod · 0.45
applyMethod · 0.45
resources.cppFile · 0.45

Calls 4

MegabytesFunction · 0.85
NoneClass · 0.85
isSomeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected