Apache Mesos
Enumerations | Functions | Variables
mesos::internal::slave::containerizer::paths Namespace Reference

Enumerations

enum  Mode { PREFIX, SUFFIX, JOIN }
 

Functions

std::string buildPath (const ContainerID &containerId, const std::string &separator, const Mode &mode)
 
std::string getRuntimePath (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getContainerDevicesPath (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< pid_tgetContainerPid (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< int > getContainerStatus (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getContainerIOSwitchboardPath (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getContainerIOSwitchboardPidPath (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< pid_tgetContainerIOSwitchboardPid (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getContainerIOSwitchboardSocketPath (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getContainerIOSwitchboardSocketProvisionalPath (const std::string &socketPath)
 
std::string getContainerIOSwitchboardSocketProvisionalPath (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< process::network::unix::AddressgetContainerIOSwitchboardAddress (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getHostProcMountPointPath (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getContainerForceDestroyOnRecoveryPath (const std::string &runtimeDir, const ContainerID &containerId)
 
bool getContainerForceDestroyOnRecovery (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< mesos::slave::ContainerTermination > getContainerTermination (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getStandaloneContainerMarkerPath (const std::string &runtimeDir, const ContainerID &containerId)
 
bool isStandaloneContainer (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< mesos::slave::ContainerConfig > getContainerConfig (const std::string &runtimeDir, const ContainerID &containerId)
 
Try< std::vector< ContainerID > > getContainerIds (const std::string &runtimeDir)
 
std::string getContainerLaunchInfoPath (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< mesos::slave::ContainerLaunchInfo > getContainerLaunchInfo (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string getSandboxPath (const std::string &rootSandboxPath, const ContainerID &containerId)
 
Try< ContainerID > parseSandboxPath (const ContainerID &rootContainerId, const std::string &rootSandboxPath, const std::string &path)
 
std::string getContainerShmPath (const std::string &runtimeDir, const ContainerID &containerId)
 
Try< std::string > getParentShmPath (const std::string runtimeDir, const ContainerID &containerId)
 
std::string getCgroupPath (const std::string &cgroupsRoot, const ContainerID &containerId)
 
Option< ContainerID > parseCgroupPath (const std::string &cgroupsRoot, const std::string &cgroup)
 

Variables

constexpr char PID_FILE [] = "pid"
 
constexpr char CONTAINER_CONFIG_FILE [] = "config"
 
constexpr char STATUS_FILE [] = "status"
 
constexpr char TERMINATION_FILE [] = "termination"
 
constexpr char SOCKET_FILE [] = "socket"
 
constexpr char FORCE_DESTROY_ON_RECOVERY_FILE [] = "force_destroy_on_recovery"
 
constexpr char IO_SWITCHBOARD_DIRECTORY [] = "io_switchboard"
 
constexpr char MNT_DIRECTORY [] = "mnt"
 
constexpr char MNT_HOST_PROC [] = "host_proc"
 
constexpr char CONTAINER_DIRECTORY [] = "containers"
 
constexpr char CONTAINER_DEVICES_DIRECTORY [] = "devices"
 
constexpr char CONTAINER_LAUNCH_INFO_FILE [] = "launch_info"
 
constexpr char STANDALONE_MARKER_FILE [] = "standalone.marker"
 
constexpr char CONTAINER_SHM_DIRECTORY [] = "shm"
 
constexpr char AGENT_SHM_DIRECTORY [] = "/dev/shm"
 
constexpr char SECRET_DIRECTORY [] = ".secret"
 

Enumeration Type Documentation

Enumerator
PREFIX 
SUFFIX 
JOIN 

Function Documentation

std::string mesos::internal::slave::containerizer::paths::buildPath ( const ContainerID &  containerId,
const std::string &  separator,
const Mode mode 
)
std::string mesos::internal::slave::containerizer::paths::getCgroupPath ( const std::string &  cgroupsRoot,
const ContainerID &  containerId 
)
Result<mesos::slave::ContainerConfig> mesos::internal::slave::containerizer::paths::getContainerConfig ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getContainerDevicesPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
bool mesos::internal::slave::containerizer::paths::getContainerForceDestroyOnRecovery ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getContainerForceDestroyOnRecoveryPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
Try<std::vector<ContainerID> > mesos::internal::slave::containerizer::paths::getContainerIds ( const std::string &  runtimeDir)
Result<process::network::unix::Address> mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardAddress ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
Result<pid_t> mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardPid ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardPidPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardSocketPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardSocketProvisionalPath ( const std::string &  socketPath)
std::string mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardSocketProvisionalPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
Result<mesos::slave::ContainerLaunchInfo> mesos::internal::slave::containerizer::paths::getContainerLaunchInfo ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getContainerLaunchInfoPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
Result<pid_t> mesos::internal::slave::containerizer::paths::getContainerPid ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getContainerShmPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
Result<int> mesos::internal::slave::containerizer::paths::getContainerStatus ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
Result<mesos::slave::ContainerTermination> mesos::internal::slave::containerizer::paths::getContainerTermination ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getHostProcMountPointPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
Try<std::string> mesos::internal::slave::containerizer::paths::getParentShmPath ( const std::string  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getRuntimePath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getSandboxPath ( const std::string &  rootSandboxPath,
const ContainerID &  containerId 
)
std::string mesos::internal::slave::containerizer::paths::getStandaloneContainerMarkerPath ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
bool mesos::internal::slave::containerizer::paths::isStandaloneContainer ( const std::string &  runtimeDir,
const ContainerID &  containerId 
)
Option<ContainerID> mesos::internal::slave::containerizer::paths::parseCgroupPath ( const std::string &  cgroupsRoot,
const std::string &  cgroup 
)
Try<ContainerID> mesos::internal::slave::containerizer::paths::parseSandboxPath ( const ContainerID &  rootContainerId,
const std::string &  rootSandboxPath,
const std::string &  path 
)

Variable Documentation

constexpr char mesos::internal::slave::containerizer::paths::AGENT_SHM_DIRECTORY[] = "/dev/shm"
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_CONFIG_FILE[] = "config"
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_DEVICES_DIRECTORY[] = "devices"
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_DIRECTORY[] = "containers"
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_LAUNCH_INFO_FILE[] = "launch_info"
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_SHM_DIRECTORY[] = "shm"
constexpr char mesos::internal::slave::containerizer::paths::FORCE_DESTROY_ON_RECOVERY_FILE[] = "force_destroy_on_recovery"
constexpr char mesos::internal::slave::containerizer::paths::IO_SWITCHBOARD_DIRECTORY[] = "io_switchboard"
constexpr char mesos::internal::slave::containerizer::paths::MNT_DIRECTORY[] = "mnt"
constexpr char mesos::internal::slave::containerizer::paths::MNT_HOST_PROC[] = "host_proc"
constexpr char mesos::internal::slave::containerizer::paths::PID_FILE[] = "pid"
constexpr char mesos::internal::slave::containerizer::paths::SECRET_DIRECTORY[] = ".secret"
constexpr char mesos::internal::slave::containerizer::paths::SOCKET_FILE[] = "socket"
constexpr char mesos::internal::slave::containerizer::paths::STANDALONE_MARKER_FILE[] = "standalone.marker"
constexpr char mesos::internal::slave::containerizer::paths::STATUS_FILE[] = "status"
constexpr char mesos::internal::slave::containerizer::paths::TERMINATION_FILE[] = "termination"