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

Remote recipe repository URL management. More...

Functions

Value< void > set (fs::path const &path_file_binary, std::string const &url)
 Sets a remote URL in the database.
 
Value< std::string > get (fs::path const &path_file_binary)
 Gets the remote URL from the database.
 
Value< void > clear (fs::path const &path_file_binary)
 Clears the remote URL from the database.
 

Detailed Description

Remote recipe repository URL management.

Manages the remote URL for FlatImage recipe repositories. Stores and retrieves the base URL from which recipe JSON files are fetched during package installation. Provides simple get/set operations with persistence to the binary's reserved space for distribution-specific recipe sources.

Function Documentation

◆ clear()

Value< void > ns_db::ns_remote::clear ( fs::path const & path_file_binary)
inlinenodiscard

Clears the remote URL from the database.

Parameters
path_file_binaryPath to the binary with remote URL database
Returns
Nothing on success, or the respective error

Definition at line 83 of file remote.hpp.

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

◆ get()

Value< std::string > ns_db::ns_remote::get ( fs::path const & path_file_binary)
inlinenodiscard

Gets the remote URL from the database.

Parameters
path_file_binaryPath to the binary with remote URL database
Returns
The remote URL on success, or the respective error

Definition at line 62 of file remote.hpp.

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

◆ set()

Value< void > ns_db::ns_remote::set ( fs::path const & path_file_binary,
std::string const & url )
inlinenodiscard

Sets a remote URL in the database.

Parameters
path_file_binaryPath to the binary with remote URL database
urlThe remote URL to set
Returns
Nothing on success, or the respective error

Definition at line 44 of file remote.hpp.

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