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

Function exists

src/linux/routing/link/link.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111Try<bool> exists(const string& _link)
112{
113 Result<Netlink<struct rtnl_link>> link = internal::get(_link);
114 if (link.isError()) {
115 return Error(link.error());
116 }
117 return link.isSome();
118}
119
120
121Try<bool> remove(const string& _link)

Callers 2

foreachFunction · 0.70
checkMethod · 0.70

Calls 5

getFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
isSomeMethod · 0.45

Tested by

no test coverage detected