MCPcopy Create free account
hub / github.com/apache/trafficserver / runroot_map_default

Function runroot_map_default

src/tscore/runroot.cc:215–236  ·  view source on GitHub ↗

return a map of all path with default layout

Source from the content-addressed store, hash-verified

213
214// return a map of all path with default layout
215std::unordered_map<std::string, std::string>
216runroot_map_default()
217{
218 std::unordered_map<std::string, std::string> map;
219
220 map[LAYOUT_PREFIX] = Layout::get()->prefix;
221 map[LAYOUT_EXEC_PREFIX] = Layout::get()->exec_prefix;
222 map[LAYOUT_BINDIR] = Layout::get()->bindir;
223 map[LAYOUT_SBINDIR] = Layout::get()->sbindir;
224 map[LAYOUT_SYSCONFDIR] = Layout::get()->sysconfdir;
225 map[LAYOUT_DATADIR] = Layout::get()->datadir;
226 map[LAYOUT_INCLUDEDIR] = Layout::get()->includedir;
227 map[LAYOUT_LIBDIR] = Layout::get()->libdir;
228 map[LAYOUT_LIBEXECDIR] = Layout::get()->libexecdir;
229 map[LAYOUT_LOCALSTATEDIR] = Layout::get()->localstatedir;
230 map[LAYOUT_RUNTIMEDIR] = Layout::get()->runtimedir;
231 map[LAYOUT_LOGDIR] = Layout::get()->logdir;
232 // mandir is not needed for runroot
233 map[LAYOUT_CACHEDIR] = Layout::get()->cachedir;
234
235 return map;
236}
237
238// return a map of all path in runroot.yaml
239RunrootMapType

Callers 1

verify_runrootMethod · 0.85

Calls 1

getFunction · 0.50

Tested by

no test coverage detected