FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_filesystem::Filesystem Class Referenceabstract
Inheritance diagram for ns_filesystem::Filesystem:
[legend]

Public Member Functions

virtual ~Filesystem ()
 Destroy the Filesystem:: Filesystem object, it un-mounts the filesystem and sends a termination signal.
 
virtual Value< void > mount ()=0
 
 Filesystem (Filesystem &&)=default
 
 Filesystem (Filesystem const &)=delete
 
Filesystemoperator= (Filesystem &&)=default
 
Filesystemoperator= (Filesystem const &)=delete
 

Protected Member Functions

 Filesystem (pid_t pid_to_die_for, std::filesystem::path const &path_dir_mount, std::filesystem::path const &path_file_log)
 Construct a new Filesystem object.
 

Protected Attributes

pid_t m_pid_to_die_for
 
std::filesystem::path m_path_dir_mount
 
std::filesystem::path m_path_file_log
 
std::unique_ptr< ns_subprocess::Childm_child
 

Detailed Description

Definition at line 29 of file filesystem.hpp.

Constructor & Destructor Documentation

◆ Filesystem()

ns_filesystem::Filesystem::Filesystem ( pid_t pid_to_die_for,
std::filesystem::path const & path_dir_mount,
std::filesystem::path const & path_file_log )
inlineprotected

Construct a new Filesystem object.

Parameters
pid_to_die_forPid the mount process should die with
path_dir_mountPath to the mount directory
path_file_logPath to the log file for filesystem operations

Definition at line 57 of file filesystem.hpp.

Here is the caller graph for this function:

◆ ~Filesystem()

ns_filesystem::Filesystem::~Filesystem ( )
inlinevirtual

Destroy the Filesystem:: Filesystem object, it un-mounts the filesystem and sends a termination signal.

Definition at line 72 of file filesystem.hpp.

Here is the call graph for this function:

Member Function Documentation

◆ mount()

virtual Value< void > ns_filesystem::Filesystem::mount ( )
nodiscardpure virtual

Member Data Documentation

◆ m_child

std::unique_ptr<ns_subprocess::Child> ns_filesystem::Filesystem::m_child
protected

Definition at line 35 of file filesystem.hpp.

◆ m_path_dir_mount

std::filesystem::path ns_filesystem::Filesystem::m_path_dir_mount
protected

Definition at line 33 of file filesystem.hpp.

◆ m_path_file_log

std::filesystem::path ns_filesystem::Filesystem::m_path_file_log
protected

Definition at line 34 of file filesystem.hpp.

◆ m_pid_to_die_for

pid_t ns_filesystem::Filesystem::m_pid_to_die_for
protected

Definition at line 32 of file filesystem.hpp.


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