|
FlatImage
A configurable Linux containerization system
|
Bind mount configuration storage in reserved space. More...
Functions | |
| Value< void > | write (fs::path const &path_file_binary, std::string_view const &json) |
| Writes the bindings json string to the target binary. | |
| Value< std::string > | read (fs::path const &path_file_binary) |
| Reads the bindings json string from the target binary. | |
Bind mount configuration storage in reserved space.
This namespace manages bind mount configurations stored as a JSON string in the binary's reserved space. It stores mappings between host paths and container paths, allowing specific directories or files from the host system to be made available inside the containerized environment. Bind mounts can be read-only or read-write and are applied at runtime during container initialization.
|
inline |
Reads the bindings json string from the target binary.
| path_file_binary | Target binary to write the json string |
Definition at line 65 of file bind.hpp.
|
inline |
Writes the bindings 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 bind.hpp.