FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_reserved::ns_unshare::Unshares Class Reference

Manages FlatImage unshare options stored in reserved space. More...

#include <unshare.hpp>

Public Member Functions

 Unshares (fs::path const &path_file_binary)
 Constructs an Unshares manager for the given binary.
 
Value< void > set_all (bool value)
 Sets all unshare options to the specified value.
 
Value< void > set (std::set< Unshare > const &unshares)
 Sets the specified unshare options (replaces existing)
 
Value< void > add (std::set< Unshare > const &unshares)
 Adds unshare options to existing configuration.
 
Value< void > del (std::set< Unshare > const &unshares)
 Removes unshare options from existing configuration.
 
bool contains (Unshare const &unshare) const noexcept
 Checks if a specific unshare option is enabled.
 
Value< void > clear () noexcept
 Clears all unshare options.
 
Value< std::set< std::string > > to_strings () const noexcept
 Converts enabled unshare options to string representations.
 

Detailed Description

Manages FlatImage unshare options stored in reserved space.

Definition at line 133 of file unshare.hpp.

Constructor & Destructor Documentation

◆ Unshares()

ns_reserved::ns_unshare::Unshares::Unshares ( fs::path const & path_file_binary)
inline

Constructs an Unshares manager for the given binary.

Parameters
path_file_binaryPath to the FlatImage binary file

Definition at line 161 of file unshare.hpp.

Member Function Documentation

◆ add()

Value< void > ns_reserved::ns_unshare::Unshares::add ( std::set< Unshare > const & unshares)
inlinenodiscard

Adds unshare options to existing configuration.

Parameters
unsharesSet of unshare options to add
Returns
Value<void> Success or error

Definition at line 194 of file unshare.hpp.

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

◆ clear()

Value< void > ns_reserved::ns_unshare::Unshares::clear ( )
inlinenodiscardnoexcept

Clears all unshare options.

Returns
Value<void> Success or error

Definition at line 227 of file unshare.hpp.

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

◆ contains()

bool ns_reserved::ns_unshare::Unshares::contains ( Unshare const & unshare) const
inlinenodiscardnoexcept

Checks if a specific unshare option is enabled.

Parameters
unshareUnshare option to check
Returns
True if the unshare option is enabled, false otherwise

Definition at line 214 of file unshare.hpp.

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

◆ del()

Value< void > ns_reserved::ns_unshare::Unshares::del ( std::set< Unshare > const & unshares)
inlinenodiscard

Removes unshare options from existing configuration.

Parameters
unsharesSet of unshare options to remove
Returns
Value<void> Success or error

Definition at line 204 of file unshare.hpp.

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

◆ set()

Value< void > ns_reserved::ns_unshare::Unshares::set ( std::set< Unshare > const & unshares)
inlinenodiscard

Sets the specified unshare options (replaces existing)

Parameters
unsharesSet of unshare options to enable
Returns
Value<void> Success or error

Definition at line 184 of file unshare.hpp.

Here is the caller graph for this function:

◆ set_all()

Value< void > ns_reserved::ns_unshare::Unshares::set_all ( bool value)
inlinenodiscard

Sets all unshare options to the specified value.

Parameters
valueTrue to enable all unshare options, false to disable
Returns
Value<void> Success or error

Definition at line 170 of file unshare.hpp.

◆ to_strings()

Value< std::set< std::string > > ns_reserved::ns_unshare::Unshares::to_strings ( ) const
inlinenodiscardnoexcept

Converts enabled unshare options to string representations.

Returns
Value containing a set of unshare option names

Definition at line 236 of file unshare.hpp.

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

The documentation for this class was generated from the following file: