17 #ifndef __MESOS_CONTAINERIZER_PATHS_HPP__ 18 #define __MESOS_CONTAINERIZER_PATHS_HPP__ 20 #include <sys/types.h> 37 namespace containerizer {
107 const ContainerID& containerId,
108 const std::string& separator,
116 const std::string& runtimeDir,
117 const ContainerID& containerId);
126 const std::string& runtimeDir,
127 const ContainerID& containerId);
132 const std::string& runtimeDir,
133 const ContainerID& containerId);
138 const std::string& runtimeDir,
139 const ContainerID& containerId);
145 const std::string& runtimeDir,
146 const ContainerID& containerId);
151 const std::string& runtimeDir,
152 const ContainerID& containerId);
157 const std::string& runtimeDir,
158 const ContainerID& containerId);
163 const std::string& runtimeDir,
164 const ContainerID& containerId);
170 const std::string& socketPath);
176 const std::string& runtimeDir,
177 const ContainerID& containerId);
182 const std::string& runtimeDir,
183 const ContainerID& containerId);
187 const std::string& runtimeDir,
188 const ContainerID& containerId);
194 const std::string& runtimeDir,
195 const ContainerID& containerId);
201 const std::string& runtimeDir,
202 const ContainerID& containerId);
207 const std::string& runtimeDir,
208 const ContainerID& containerId);
213 const std::string& runtimeDir,
214 const ContainerID& containerId);
221 const std::string& runtimeDir,
222 const ContainerID& containerId);
227 const std::string& runtimeDir,
228 const ContainerID& containerId);
236 const std::string& runtimeDir);
241 const std::string& runtimeDir,
242 const ContainerID& containerId);
248 const std::string& runtimeDir,
249 const ContainerID& containerId);
254 const std::string& rootSandboxPath,
255 const ContainerID& containerId);
261 const ContainerID& rootContainerId,
262 const std::string& rootSandboxPath,
263 const std::string&
path);
267 const std::string& runtimeDir,
268 const ContainerID& containerId);
272 const std::string runtimeDir,
273 const ContainerID& containerId);
279 const std::string& cgroupsRoot,
280 const ContainerID& containerId);
286 const std::string& cgroupsRoot,
287 const std::string&
cgroup);
295 #endif // __MESOS_CONTAINERIZER_PATHS_HPP__ constexpr char FORCE_DESTROY_ON_RECOVERY_FILE[]
Definition: paths.hpp:77
std::string getContainerDevicesPath(const std::string &runtimeDir, const ContainerID &containerId)
Option< ContainerID > parseCgroupPath(const std::string &cgroupsRoot, const std::string &cgroup)
Result< mesos::slave::ContainerTermination > getContainerTermination(const std::string &runtimeDir, const ContainerID &containerId)
Result< mesos::slave::ContainerConfig > getContainerConfig(const std::string &runtimeDir, const ContainerID &containerId)
std::string buildPath(const ContainerID &containerId, const std::string &separator, const Mode &mode)
constexpr char MNT_DIRECTORY[]
Definition: paths.hpp:79
constexpr char MNT_HOST_PROC[]
Definition: paths.hpp:80
constexpr char SOCKET_FILE[]
Definition: paths.hpp:76
std::string getContainerIOSwitchboardPath(const std::string &runtimeDir, const ContainerID &containerId)
constexpr char IO_SWITCHBOARD_DIRECTORY[]
Definition: paths.hpp:78
std::string getContainerIOSwitchboardPidPath(const std::string &runtimeDir, const ContainerID &containerId)
std::string paths()
Definition: os.hpp:138
constexpr char CONTAINER_SHM_DIRECTORY[]
Definition: paths.hpp:85
constexpr char TERMINATION_FILE[]
Definition: paths.hpp:75
std::string getContainerShmPath(const std::string &runtimeDir, const ContainerID &containerId)
constexpr char CONTAINER_DIRECTORY[]
Definition: paths.hpp:81
Mode
Definition: paths.hpp:90
std::string getContainerForceDestroyOnRecoveryPath(const std::string &runtimeDir, const ContainerID &containerId)
std::string getContainerIOSwitchboardSocketPath(const std::string &runtimeDir, const ContainerID &containerId)
Result< pid_t > getContainerPid(const std::string &runtimeDir, const ContainerID &containerId)
std::string getCgroupPath(const std::string &cgroupsRoot, const ContainerID &containerId)
Try< ContainerID > parseSandboxPath(const ContainerID &rootContainerId, const std::string &rootSandboxPath, const std::string &path)
constexpr char CONTAINER_CONFIG_FILE[]
Definition: paths.hpp:73
std::string getRuntimePath(const std::string &runtimeDir, const ContainerID &containerId)
constexpr char STATUS_FILE[]
Definition: paths.hpp:74
std::string getSandboxPath(const std::string &rootSandboxPath, const ContainerID &containerId)
constexpr char PID_FILE[]
Definition: paths.hpp:72
Result< std::string > cgroup(pid_t pid)
std::string getContainerLaunchInfoPath(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)
Try< std::string > getParentShmPath(const std::string runtimeDir, const ContainerID &containerId)
Try< std::vector< ContainerID > > getContainerIds(const std::string &runtimeDir)
constexpr char SECRET_DIRECTORY[]
Definition: paths.hpp:87
Definition: attributes.hpp:24
Result< mesos::slave::ContainerLaunchInfo > getContainerLaunchInfo(const std::string &runtimeDir, const ContainerID &containerId)
constexpr char AGENT_SHM_DIRECTORY[]
Definition: paths.hpp:86
constexpr char CONTAINER_LAUNCH_INFO_FILE[]
Definition: paths.hpp:83
constexpr char CONTAINER_DEVICES_DIRECTORY[]
Definition: paths.hpp:82
Try< mode_t > mode(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:168
std::string getHostProcMountPointPath(const std::string &runtimeDir, const ContainerID &containerId)
std::string getContainerIOSwitchboardSocketProvisionalPath(const std::string &socketPath)
constexpr char STANDALONE_MARKER_FILE[]
Definition: paths.hpp:84
Result< int > getContainerStatus(const std::string &runtimeDir, const ContainerID &containerId)
bool getContainerForceDestroyOnRecovery(const std::string &runtimeDir, const ContainerID &containerId)
Result< pid_t > getContainerIOSwitchboardPid(const std::string &runtimeDir, const ContainerID &containerId)
Result< process::network::unix::Address > getContainerIOSwitchboardAddress(const std::string &runtimeDir, const ContainerID &containerId)