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

Portal IPC message serialization and deserialization. More...

Classes

class  Message
 

Functions

Value< Messagedeserialize (std::string_view str_raw_json)
 Deserializes a json string into a Message class.
 
Value< std::string > serialize (Message const &message)
 Serializes a Message class into a json string.
 

Detailed Description

Portal IPC message serialization and deserialization.

Handles message format for FIFO-based communication between host and container processes. Manages command vectors, stdio FIFO paths (stdin/stdout/stderr), exit code channels, PID tracking, and environment variables for cross-boundary command execution with proper I/O redirection.

Function Documentation

◆ deserialize()

Value< Message > ns_db::ns_portal::ns_message::deserialize ( std::string_view str_raw_json)
inlinenodiscardnoexcept

Deserializes a json string into a Message class.

Deserializes JSON string into a Binds object.

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

Definition at line 104 of file message.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_message::serialize ( Message const & message)
inlinenodiscardnoexcept

Serializes a Message class into a json string.

Parameters
messageThe Message object to serialize
Returns
The serialized json data;

Definition at line 129 of file message.hpp.

Here is the caller graph for this function: