FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_cmd::ns_bind Namespace Reference

Bind mount command implementation. More...

Functions

Value< ns_db::ns_bind::Bindsdb_read (fs::path const &path_file_binary)
 Reads data from the reserved space.
 
Value< void > db_write (fs::path const &path_file_binary, ns_db::ns_bind::Binds const &binds)
 Writes data to the reserved space.
 
Value< void > add (fs::path const &path_file_binary, ns_db::ns_bind::Type bind_type, fs::path const &path_src, fs::path const &path_dst)
 Adds a binding instruction to the binding database.
 
Value< void > del (fs::path const &path_file_binary, uint64_t index)
 Deletes a binding from the database.
 
Value< void > list (fs::path const &path_file_binary)
 List bindings from the given bindings database.
 

Detailed Description

Bind mount command implementation.

Implements the fim-bind command for managing host-to-sandbox bind mount configurations. Provides operations to add, remove, and list bind mounts with support for read-only (RO), read-write (RW), and device (DEV) mount types. Persists configurations to reserved space.

Function Documentation

◆ add()

Value< void > ns_cmd::ns_bind::add ( fs::path const & path_file_binary,
ns_db::ns_bind::Type bind_type,
fs::path const & path_src,
fs::path const & path_dst )
inlinenodiscard

Adds a binding instruction to the binding database.

Parameters
path_file_binaryPath to the flatimage binary
cmdBinding instructions
Returns
Value<void> Nothing on success or the respective error

Definition at line 86 of file bind.hpp.

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

◆ db_read()

Value< ns_db::ns_bind::Binds > ns_cmd::ns_bind::db_read ( fs::path const & path_file_binary)
inline

Reads data from the reserved space.

Parameters
path_file_binaryPath to the flatimage binary
Returns
Value<ns_db::ns_bind::Binds> The structured data or the respective error

Definition at line 57 of file bind.hpp.

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

◆ db_write()

Value< void > ns_cmd::ns_bind::db_write ( fs::path const & path_file_binary,
ns_db::ns_bind::Binds const & binds )
inline

Writes data to the reserved space.

Parameters
path_file_binaryPath to the flatimage binary
Returns
Value<void> Nothing on success, or the respective error

Definition at line 71 of file bind.hpp.

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

◆ del()

Value< void > ns_cmd::ns_bind::del ( fs::path const & path_file_binary,
uint64_t index )
inlinenodiscard

Deletes a binding from the database.

Parameters
path_file_binaryPath to the flatimage binary
indexIndex of the binding to erase
Returns
Value<void> Returns nothing on success, or the respective error

Definition at line 116 of file bind.hpp.

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

◆ list()

Value< void > ns_cmd::ns_bind::list ( fs::path const & path_file_binary)
inlinenodiscard

List bindings from the given bindings database.

Parameters
path_file_binaryPath to the flatimage binary

Definition at line 133 of file bind.hpp.

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