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

Boot command configuration storage. More...

Classes

class  Boot
 

Functions

Value< Bootdeserialize (std::string_view str_raw_json)
 Deserializes a json string into a Boot class.
 
Value< std::string > serialize (Boot const &boot)
 Serializes a Boot class into a json string.
 

Detailed Description

Boot command configuration storage.

Manages the default boot command and arguments for FlatImage applications. Stores the program path and argument vector that will be executed when the FlatImage is launched without explicit commands. Supports JSON serialization/deserialization for persistent storage in reserved space.

Function Documentation

◆ deserialize()

Value< Boot > ns_db::ns_boot::deserialize ( std::string_view str_raw_json)
inlinenodiscardnoexcept

Deserializes a json string into a Boot class.

Deserializes JSON string into a Binds object.

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

Definition at line 57 of file boot.hpp.

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

◆ serialize()

Value< std::string > ns_db::ns_boot::serialize ( Boot const & boot)
inlinenodiscardnoexcept

Serializes a Boot class into a json string.

Parameters
bootThe Boot object to serialize
Returns
The serialized json data;

Definition at line 76 of file boot.hpp.

Here is the caller graph for this function: