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

Function createQuotaInfo

src/master/quota.cpp:144–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142namespace {
143
144QuotaInfo createQuotaInfo(
145 const string& role,
146 const RepeatedPtrField<Resource>& guarantee)
147{
148 QuotaInfo quota;
149
150 quota.set_role(role);
151 quota.mutable_guarantee()->CopyFrom(guarantee);
152
153 return quota;
154}
155
156} // namespace {
157

Callers 1

_setMethod · 0.85

Calls 1

CopyFromMethod · 0.80

Tested by

no test coverage detected