|
virthttp
0.0
libvirt http interface
|
#include <domain.hpp>
Public Member Functions | |
| DomainUnawareHandlers (HandlerContext &ctx) | |
| constexpr auto | search_all_flags (const TargetParser &target) const noexcept-> std::optional< virt::enums::connection::list::domains::Flag > |
Additional Inherited Members | |
Public Attributes inherited from HandlerContext | |
| virt::Connection & | conn |
| the connection to perform libvirt operations through (plans to change to a vector) More... | |
| JsonRes & | json_res |
| the result of running the handlers to be sent to the client More... | |
| const TargetParser & | target |
| the incoming request's URI target More... | |
Protected Member Functions inherited from HandlerContext | |
| template<class... Args> | |
| auto | error (Args &&...args) const noexcept(noexcept(json_res.error(std::forward< Args >(args)...))) -> decltype(json_res.error(std::forward< Args >(args)...)) |
| const auto | fwd_err (bool fwd, int code) |
| const auto | fwd_as_if_err (int code) |
Domains-specific handler utilities
|
inlineexplicit |
|
inlinenoexcept |
Extractor of virt::Connection::List::Domains::Flag from a URI's target
| [in] | target | the target to extract the flag from |
std::nullopt on error
1.8.11