FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_reserved::ns_remote Namespace Reference

Remote recipe repository URL storage in reserved space. More...

Functions

Value< void > write (fs::path const &path_file_binary, std::string_view const &url)
 Writes the remote URL string to the target binary.
 
Value< std::string > read (fs::path const &path_file_binary)
 Reads the remote URL string from the target binary.
 

Detailed Description

Remote recipe repository URL storage in reserved space.

This namespace manages the remote recipe repository URL. The URL points to a repository of package recipes that can be installed into the FlatImage to add additional dependencies, libraries, or applications. This enables dynamic package installation without rebuilding the base image, supporting distribution-specific package managers (apk for Alpine, pacman for Arch).

Function Documentation

◆ read()

Value< std::string > ns_reserved::ns_remote::read ( fs::path const & path_file_binary)
inline

Reads the remote URL string from the target binary.

Parameters
path_file_binaryTarget binary to read the URL string
Returns
On success it returns the read data, or the respective error message

Definition at line 65 of file remote.hpp.

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

◆ write()

Value< void > ns_reserved::ns_remote::write ( fs::path const & path_file_binary,
std::string_view const & url )
inline

Writes the remote URL string to the target binary.

Parameters
path_file_binaryTarget binary to write the URL string
urlURL string to write to the target file as binary data
Returns
Value<void> Nothing on success, or the respective error message

Definition at line 45 of file remote.hpp.

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