FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
ns_bwrap::ns_proxy::User Struct Reference

The representation of a user in bubblewrap. More...

#include <bwrap.hpp>

Collaboration diagram for ns_bwrap::ns_proxy::User:
[legend]

Classes

struct  UserData
 

Public Member Functions

 User (UserData const &data)
 Construct a new User object with the provided user data.
 
Value< void > write_passwd (fs::path const &path_file_passwd)
 Writes the passwd entry to the provided file path.
 
Value< void > write_bashrc (fs::path const &path_file_bashrc, std::string_view ps1)
 Writes the bashrc file and returns its path.
 

Public Attributes

struct ns_bwrap::ns_proxy::User::UserData data
 

Detailed Description

The representation of a user in bubblewrap.

Definition at line 95 of file bwrap.hpp.

Constructor & Destructor Documentation

◆ User()

ns_bwrap::ns_proxy::User::User ( UserData const & data)
inline

Construct a new User object with the provided user data.

Parameters
dataThe user data for the container environment

Definition at line 121 of file bwrap.hpp.

Member Function Documentation

◆ write_bashrc()

Value< void > ns_bwrap::ns_proxy::User::write_bashrc ( fs::path const & path_file_bashrc,
std::string_view ps1 )
inlinenodiscard

Writes the bashrc file and returns its path.

Returns
Value<fs::path> The path to the bashrc file

Definition at line 143 of file bwrap.hpp.

◆ write_passwd()

Value< void > ns_bwrap::ns_proxy::User::write_passwd ( fs::path const & path_file_passwd)
inlinenodiscard

Writes the passwd entry to the provided file path.

Returns
Value<void> Nothing on success, or the respective error

Definition at line 130 of file bwrap.hpp.


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