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

Portal daemon configuration and management. More...

Namespaces

namespace  ns_log
 Portal daemon logging configuration.
 

Classes

class  Daemon
 

Functions

 ENUM (Mode, HOST, GUEST)
 
Value< Daemondeserialize (std::string_view str_raw_json)
 Deserializes a json string into a Daemon class.
 
Value< std::string > serialize (Daemon const &daemon)
 Serializes a Daemon class into a json string.
 

Detailed Description

Portal daemon configuration and management.

Manages configuration for the portal daemon process that enables FIFO-based inter-process communication between host and container environments. Handles daemon mode (HOST/GUEST), FIFO paths, binary locations, and log configuration with serialization support for passing configuration via environment variables.

Function Documentation

◆ deserialize()

Value< Daemon > ns_db::ns_portal::ns_daemon::deserialize ( std::string_view str_raw_json)
inlinenodiscardnoexcept

Deserializes a json string into a Daemon class.

Deserializes JSON string into a Binds object.

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

Definition at line 186 of file daemon.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_daemon::serialize ( Daemon const & daemon)
inlinenodiscardnoexcept

Serializes a Daemon class into a json string.

Parameters
daemonThe Daemon object to serialize
Returns
The serialized json data;

Definition at line 210 of file daemon.hpp.

Here is the caller graph for this function: