FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_db::ns_boot::Boot Class Reference

Public Member Functions

 Boot ()
 Construct a new Boot:: Boot object.
 
std::string const & get_program () const
 
std::vector< std::string > const & get_args () const
 
void set_program (std::string_view str_program)
 
void set_args (std::vector< std::string > const &vec_args)
 

Friends

Value< Bootdeserialize (std::string_view str_raw_json)
 Deserializes JSON string into a Binds object.
 
Value< std::string > serialize (Boot const &boot)
 Serializes a Boot class into a json string.
 

Detailed Description

Definition at line 28 of file boot.hpp.

Constructor & Destructor Documentation

◆ Boot()

ns_db::ns_boot::Boot::Boot ( )
inline

Construct a new Boot:: Boot object.

Definition at line 46 of file boot.hpp.

Here is the caller graph for this function:

Member Function Documentation

◆ get_args()

std::vector< std::string > const & ns_db::ns_boot::Boot::get_args ( ) const
inline

Definition at line 36 of file boot.hpp.

◆ get_program()

std::string const & ns_db::ns_boot::Boot::get_program ( ) const
inline

Definition at line 35 of file boot.hpp.

◆ set_args()

void ns_db::ns_boot::Boot::set_args ( std::vector< std::string > const & vec_args)
inline

Definition at line 38 of file boot.hpp.

◆ set_program()

void ns_db::ns_boot::Boot::set_program ( std::string_view str_program)
inline

Definition at line 37 of file boot.hpp.

Friends And Related Symbol Documentation

◆ deserialize

Value< Boot > deserialize ( std::string_view str_raw_json)
friend

Deserializes JSON string into a Binds object.

Parses a JSON string containing bind mount configurations and constructs a Binds object. Each JSON entry should have "src", "dst", and "type" fields. The type field must be "ro" (read-only), "rw" (read-write), or "dev" (device). Entries with invalid indices are logged as warnings and skipped. Successfully parsed entries are added to the Binds collection with their respective indices, source paths, destination paths, and access types.

Parameters
raw_jsonThe JSON string containing bind mount configurations
Returns
Value<Binds> The deserialized Binds object on success, or error on parse failure

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Boot class or the respective error

Deserializes JSON string into a Binds object.

Parameters
raw_jsonThe json string which to deserialize
Returns
The Desktop class or the respective error

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Logs class or the respective error

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Daemon class or the respective error

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Dispatcher class or the respective error

Deserializes JSON string into a Binds object.

Parameters
str_raw_jsonThe json string which to deserialize
Returns
The Message class or the respective error

Deserializes JSON string into a Binds object.

Parameters
raw_jsonThe json string which to deserialize
Returns
The Recipe class or the respective error

Definition at line 184 of file bind.hpp.

◆ serialize

Value< std::string > serialize ( Boot const & boot)
friend

Serializes a Boot class into a json string.

Parameters
bootThe Boot object to serialize
Returns
The serialized json data;

Definition at line 76 of file boot.hpp.


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