FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_db::ns_portal::ns_dispatcher Namespace Reference

Portal command dispatcher configuration. More...

Classes

class  Dispatcher
 
struct  Logs
 

Functions

Value< Dispatcherdeserialize (std::string_view str_raw_json)
 Deserializes a json string into a Dispatcher class.
 
Value< std::string > serialize (Dispatcher const &dispatcher)
 Serializes a Dispatcher class into a json string.
 

Detailed Description

Portal command dispatcher configuration.

Manages configuration for the portal dispatcher that routes commands between host and guest environments. Handles FIFO communication paths, daemon connection points, logging paths, and mode-specific (HOST/GUEST) routing with per-instance isolation via PID-based paths.

Function Documentation

◆ deserialize()

Value< Dispatcher > ns_db::ns_portal::ns_dispatcher::deserialize ( std::string_view str_raw_json)
inlinenodiscardnoexcept

Deserializes a json string into a Dispatcher class.

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Dispatcher class or the respective error

Definition at line 100 of file dispatcher.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ serialize()

Value< std::string > ns_db::ns_portal::ns_dispatcher::serialize ( Dispatcher const & dispatcher)
inlinenodiscardnoexcept

Serializes a Dispatcher class into a json string.

Parameters
dispatcherThe Dispatcher object to serialize
Returns
The serialized json data

Definition at line 121 of file dispatcher.hpp.

Here is the caller graph for this function: