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

Function nstypes

src/linux/ns.cpp:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123
124set<int> nstypes()
125{
126 set<int> result;
127
128 foreach (const string& ns, namespaces()) {
129 Try<int> type = nstype(ns);
130 if (type.isSome()) {
131 result.insert(type.get());
132 }
133 }
134
135 return result;
136}
137
138
139Try<bool> supported(int nsTypes)

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68