Apache Mesos
Namespaces | Enumerations | Functions | Variables
paths.hpp File Reference
#include <sys/types.h>
#include <string>
#include <vector>
#include <process/address.hpp>
#include <stout/result.hpp>
#include <stout/try.hpp>
#include <mesos/mesos.hpp>
#include <mesos/slave/containerizer.hpp>

Go to the source code of this file.

Namespaces

 mesos
 
 mesos::internal
 
 mesos::internal::slave
 
 mesos::internal::slave::containerizer
 
 mesos::internal::slave::containerizer::paths
 

Enumerations

enum  mesos::internal::slave::containerizer::paths::Mode { mesos::internal::slave::containerizer::paths::PREFIX, mesos::internal::slave::containerizer::paths::SUFFIX, mesos::internal::slave::containerizer::paths::JOIN }
 

Functions

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::getRuntimePath (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string mesos::internal::slave::containerizer::paths::getContainerDevicesPath (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< pid_tmesos::internal::slave::containerizer::paths::getContainerPid (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< int > mesos::internal::slave::containerizer::paths::getContainerStatus (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardPath (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string mesos::internal::slave::containerizer::paths::getContainerIOSwitchboardPidPath (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< pid_tmesos::internal::slave::containerizer::paths::getContainerIOSwitchboardPid (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< process::network::unix::Addressmesos::internal::slave::containerizer::paths::getContainerIOSwitchboardAddress (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string mesos::internal::slave::containerizer::paths::getHostProcMountPointPath (const std::string &runtimeDir, const ContainerID &containerId)
 
std::string mesos::internal::slave::containerizer::paths::getContainerForceDestroyOnRecoveryPath (const std::string &runtimeDir, const ContainerID &containerId)
 
bool mesos::internal::slave::containerizer::paths::getContainerForceDestroyOnRecovery (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::getStandaloneContainerMarkerPath (const std::string &runtimeDir, const ContainerID &containerId)
 
bool mesos::internal::slave::containerizer::paths::isStandaloneContainer (const std::string &runtimeDir, const ContainerID &containerId)
 
Result< mesos::slave::ContainerConfig > mesos::internal::slave::containerizer::paths::getContainerConfig (const std::string &runtimeDir, const ContainerID &containerId)
 
Try< std::vector< ContainerID > > mesos::internal::slave::containerizer::paths::getContainerIds (const std::string &runtimeDir)
 
std::string mesos::internal::slave::containerizer::paths::getContainerLaunchInfoPath (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::getSandboxPath (const std::string &rootSandboxPath, const ContainerID &containerId)
 
Try< ContainerID > mesos::internal::slave::containerizer::paths::parseSandboxPath (const ContainerID &rootContainerId, const std::string &rootSandboxPath, const std::string &path)
 
std::string mesos::internal::slave::containerizer::paths::getContainerShmPath (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::getCgroupPath (const std::string &cgroupsRoot, const ContainerID &containerId)
 
Option< ContainerID > mesos::internal::slave::containerizer::paths::parseCgroupPath (const std::string &cgroupsRoot, const std::string &cgroup)
 

Variables

constexpr char mesos::internal::slave::containerizer::paths::PID_FILE [] = "pid"
 
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_CONFIG_FILE [] = "config"
 
constexpr char mesos::internal::slave::containerizer::paths::STATUS_FILE [] = "status"
 
constexpr char mesos::internal::slave::containerizer::paths::TERMINATION_FILE [] = "termination"
 
constexpr char mesos::internal::slave::containerizer::paths::SOCKET_FILE [] = "socket"
 
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::CONTAINER_DIRECTORY [] = "containers"
 
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_DEVICES_DIRECTORY [] = "devices"
 
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_LAUNCH_INFO_FILE [] = "launch_info"
 
constexpr char mesos::internal::slave::containerizer::paths::STANDALONE_MARKER_FILE [] = "standalone.marker"
 
constexpr char mesos::internal::slave::containerizer::paths::CONTAINER_SHM_DIRECTORY [] = "shm"
 
constexpr char mesos::internal::slave::containerizer::paths::AGENT_SHM_DIRECTORY [] = "/dev/shm"
 
constexpr char mesos::internal::slave::containerizer::paths::SECRET_DIRECTORY [] = ".secret"