|
FlatImage
A configurable Linux containerization system
|
Environment variable database management. More...
Functions | |
| Value< void > | del (fs::path const &path_file_binary, std::vector< std::string > const &entries) |
| Deletes a list of environment variables from the database. | |
| Value< void > | add (fs::path const &path_file_binary, std::vector< std::string > const &entries) |
| Adds a new environment variable to the database. | |
| Value< void > | set (fs::path const &path_file_binary, std::vector< std::string > const &entries) |
| Resets all defined environment variables to the ones passed as an argument. | |
| Value< std::vector< std::string > > | get (fs::path const &path_file_binary) |
| Get existing variables from the database. | |
Environment variable database management.
Manages environment variables stored in FlatImage's reserved space. Provides validation, serialization/deserialization, and key-value parsing for environment entries in 'KEY=VALUE' format. Supports reading from and writing to the binary's embedded configuration with configurable environment variable injection into the container.
|
inlinenodiscard |
Adds a new environment variable to the database.
| path_file_binary | The path to the environment variable database |
| entries | List of environment variables to append to the existing ones |
Definition at line 108 of file env.hpp.
|
inlinenodiscard |
Deletes a list of environment variables from the database.
| path_file_binary | Path to the database with environment variables |
| entries | List of environment variables to erase |
Definition at line 83 of file env.hpp.
|
inlinenodiscard |
Get existing variables from the database.
| path_file_binary | The path to the environment variable database |
Definition at line 144 of file env.hpp.
|
inlinenodiscard |
Resets all defined environment variables to the ones passed as an argument.
| path_file_binary | The path to the environment variable database |
| entries | List of environment variables to set |
Definition at line 131 of file env.hpp.