MCPcopy Create free account
hub / github.com/ceph/ceph / call

Method call

src/crimson/admin/admin_socket.cc:403–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 {}
402
403 seastar::future<tell_result_t> call(const cmdmap_t&,
404 std::string_view format,
405 ceph::bufferlist&&) const final
406 {
407 LOG_PREFIX(AdminSocket::HelpHook);
408 INFO("");
409 unique_ptr<Formatter> f{Formatter::create(format,
410 "json-pretty", "json-pretty")};
411 f->open_object_section("help");
412 for (const auto& [prefix, hook] : m_as) {
413 if (!hook->help.empty()) {
414 f->dump_string(prefix.data(), hook->help);
415 }
416 }
417 f->close_section();
418 return seastar::make_ready_future<tell_result_t>(std::move(f));
419 }
420};
421
422class GetdescsHook final : public AdminSocketHook {

Callers 1

execute_commandMethod · 0.45

Calls 6

createFunction · 0.50
open_object_sectionMethod · 0.45
emptyMethod · 0.45
dump_stringMethod · 0.45
dataMethod · 0.45
close_sectionMethod · 0.45

Tested by

no test coverage detected