|
FlatImage
A configurable Linux containerization system
|
Environment variable storage in reserved space. More...
Functions | |
| Value< void > | write (fs::path const &path_file_binary, std::string_view const &json) |
| Writes the environment json string to the target binary. | |
| Value< std::string > | read (fs::path const &path_file_binary) |
| Reads the environment json string from the target binary. | |
Environment variable storage in reserved space.
This namespace manages environment variables stored as a JSON string in the binary's reserved space. It allows configuration of environment variables that are set when the containerized application is launched, enabling customization of runtime behavior, library paths, configuration options, and other environment-based settings without rebuilding the binary.
|
inline |
Reads the environment json string from the target binary.
| path_file_binary | Target binary to write the json string |
Definition at line 65 of file env.hpp.
|
inline |
Writes the environment json string to the target binary.
| path_file_binary | Target binary to write the json string |
| json | Json string to write to the target file as binary data |
Definition at line 45 of file env.hpp.