Fork Vasum on GitHub Official Vasum Wiki on Tizen.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lxcpp::ContainerConfig Struct Reference

#include <container-config.hpp>

Public Member Functions

 ContainerConfig ()
 

Public Attributes

std::string mName
 Name of the container. More...
 
std::string mRootPath
 Path of the root directory of the container. More...
 
std::string mSocketPath
 Socket for communication with the Guard. More...
 
pid_t mGuardPid
 Pid of the guard process. More...
 
pid_t mInitPid
 Pid of the container's init process. More...
 
Container::State mState
 State of the container. More...
 
int mExitStatus
 Exit status of the stopped container. More...
 
NetworkConfig mNetwork
 Container network configration. More...
 
std::vector< std::string > mInit
 Argv of the container's init process to be executed. More...
 
LoggerConfig mLogger
 Logger to be configured inside the guard process. More...
 
TerminalsConfig mTerminals
 Configuration for terminal(s), from API point of view, only their number. More...
 
int mNamespaces
 Namespace types used to create the container. More...
 
ProvisionConfig mProvisions
 available files/dirs/mounts/links More...
 
UserNSConfig mUserNSConfig
 User namespace config (uid and gid mappings) More...
 
CGroupsConfig mCgroups
 

Constructor & Destructor Documentation

lxcpp::ContainerConfig::ContainerConfig ( )
inline

Member Data Documentation

CGroupsConfig lxcpp::ContainerConfig::mCgroups
int lxcpp::ContainerConfig::mExitStatus

Exit status of the stopped container.

Set: onGuardReady() onInitStopped() start() stop() Get: getState() and callbacks

pid_t lxcpp::ContainerConfig::mGuardPid

Pid of the guard process.

Set: automatically by the guard process itself. Get: getGuardPid()

std::vector<std::string> lxcpp::ContainerConfig::mInit

Argv of the container's init process to be executed.

The path has to be relative to the RootPath.

Set: setInit() Get: getInit()

pid_t lxcpp::ContainerConfig::mInitPid

Pid of the container's init process.

Set: automatically by the guard process. Get: getInitPid()

LoggerConfig lxcpp::ContainerConfig::mLogger

Logger to be configured inside the guard process.

This logger reconfiguration is due to the fact that guard looses standard file descriptors and might loose access to other files by mount namespace usage. Hence an option to set some other logger that will work regardless. E.g. PersistentFile.

Set: setLogger() Get: none

std::string lxcpp::ContainerConfig::mName

Name of the container.

Set: by constructor, cannot be changed afterwards. Get: getName()

int lxcpp::ContainerConfig::mNamespaces

Namespace types used to create the container.

Set: setNamespaces() Get: getNamespaces()

NetworkConfig lxcpp::ContainerConfig::mNetwork

Container network configration.

Set: by container network config methods Get: none

ProvisionConfig lxcpp::ContainerConfig::mProvisions

available files/dirs/mounts/links

Set: by container provision manipulation methods Get: getFiles(), getMounts(), getLinks()

std::string lxcpp::ContainerConfig::mRootPath

Path of the root directory of the container.

Set: by constructor, cannot be changed afterwards Get: getRootPath()

std::string lxcpp::ContainerConfig::mSocketPath

Socket for communication with the Guard.

Set: by constructor, cannot be changed afterwards Get: none

Container::State lxcpp::ContainerConfig::mState

State of the container.

Set: automatically on state transitions Get: getState() and callbacks

TerminalsConfig lxcpp::ContainerConfig::mTerminals

Configuration for terminal(s), from API point of view, only their number.

Set: setTerminalCount() Get: none

UserNSConfig lxcpp::ContainerConfig::mUserNSConfig

User namespace config (uid and gid mappings)

Set: addUIDMap(), addGIDMap() Get: none


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