17 #ifndef __SLAVE_PATHS_HPP__ 18 #define __SLAVE_PATHS_HPP__ 130 const std::string& rootDir,
131 const std::string& dir);
166 const std::string& rootDir,
171 const std::string& rootDir,
176 const std::string& rootDir);
180 const std::string& rootDir,
185 const std::string& rootDir,
190 const std::string& rootDir,
196 const std::string& rootDir,
202 const std::string& rootDir,
208 const std::string& rootDir,
214 const std::string& rootDir,
221 const std::string& rootDir,
228 const std::string& rootDir,
235 const std::string& rootDir,
243 const std::string& rootDir,
250 const std::string& rootDir,
258 const std::string& rootDir,
273 const std::string& rootDir,
280 const std::string& rootDir,
288 const std::string& rootDir,
296 const std::string& rootDir,
304 const std::string& rootDir,
312 const std::string& rootDir,
317 const TaskID& taskId);
321 const std::string& rootDir,
326 const TaskID& taskId);
330 const std::string& rootDir,
335 const TaskID& taskId);
339 const std::string& rootDir,
344 const std::string& metaDir,
349 const std::string& metaDir,
351 const std::string& resourceProviderType,
352 const std::string& resourceProviderName,
353 const ResourceProviderID& resourceProviderId);
357 const std::string& metaDir,
359 const std::string& resourceProviderType,
360 const std::string& resourceProviderName,
361 const ResourceProviderID& resourceProviderId);
365 const std::string& metaDir,
367 const std::string& resourceProviderType,
368 const std::string& resourceProviderName);
372 const std::string& rootDir);
378 const std::string& metaDir,
383 const std::string& rootDir,
390 const std::string& metaDir,
396 const std::string& rootDir,
397 const std::string& dir);
403 const std::string& metaDir,
405 const std::string& dir);
409 const std::string& rootDir,
416 const std::string& metaDir,
422 const std::string& rootDir);
426 const std::string& rootDir);
430 const std::string& rootDir);
434 const std::string& rootDir);
438 const std::string& metaDir,
443 const std::string& workDir);
447 const std::string& workDir,
448 const std::string& role,
449 const std::string& persistenceId);
453 const std::string& workDir,
454 const Resource& resource);
461 const std::string& rootDir,
470 const std::string& directory,
475 const std::string& rootDir,
476 const SlaveID& slaveId);
480 const std::string& rootDir,
481 const SlaveID& slaveId,
482 const std::string& resourceProviderType,
483 const std::string& resourceProviderName,
484 const ResourceProviderID& resourceProviderId);
495 #endif // __SLAVE_PATHS_HPP__ std::string getResourceStatePath(const std::string &rootDir)
std::string getExecutorRunPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
Try< id::UUID > parseSlaveOperationPath(const std::string &metaDir, const SlaveID &slaveId, const std::string &dir)
ExecutorID executorId
Definition: paths.hpp:124
const char LATEST_SYMLINK[]
Definition: paths.hpp:134
Try< std::list< std::string > > getExecutorPaths(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId)
Try< id::UUID > parseOperationPath(const std::string &rootDir, const std::string &dir)
std::string getExecutorPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
std::string getSandboxRootDir(const std::string &rootDir)
Try< std::list< std::string > > getFrameworkPaths(const std::string &rootDir, const SlaveID &slaveId)
std::string getContainerPath(const std::string &rootDir, const ContainerID &containerId)
Result< std::string > user(Option< uid_t > uid=None())
Definition: su.hpp:284
std::string paths()
Definition: os.hpp:138
std::string getVolumeGidsPath(const std::string &rootDir)
std::string getFrameworkPidPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId)
std::string getOperationUpdatesPath(const std::string &rootDir, const id::UUID &operationUuid)
std::string getResourcesTargetPath(const std::string &rootDir)
std::string getSlaveInfoPath(const std::string &rootDir, const SlaveID &slaveId)
std::string createSlaveDirectory(const std::string &rootDir, const SlaveID &slaveId)
ContainerID containerId
Definition: paths.hpp:125
Try< std::list< std::string > > getExecutorRunPaths(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
std::string createResourceProviderDirectory(const std::string &rootDir, const SlaveID &slaveId, const std::string &resourceProviderType, const std::string &resourceProviderName, const ResourceProviderID &resourceProviderId)
std::string getResourceProviderPath(const std::string &metaDir, const SlaveID &slaveId, const std::string &resourceProviderType, const std::string &resourceProviderName, const ResourceProviderID &resourceProviderId)
std::string getCsiRootDir(const std::string &workDir)
std::string getResourceProviderStatePath(const std::string &metaDir, const SlaveID &slaveId, const std::string &resourceProviderType, const std::string &resourceProviderName, const ResourceProviderID &resourceProviderId)
std::string getSlavePath(const std::string &rootDir, const SlaveID &slaveId)
std::string getBootIdPath(const std::string &rootDir)
std::string getProvisionerDir(const std::string &rootDir)
std::string getExecutorGeneratedForCommandTaskPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
Try< std::string > createExecutorDirectory(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId, const Option< std::string > &user=None())
std::string getResourceProviderRegistryPath(const std::string &rootDir, const SlaveID &slaveId)
std::string getExecutorLatestRunPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
std::string getMetaRootDir(const std::string &rootDir)
std::string getTaskPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId, const TaskID &taskId)
std::string getLatestResourceProviderPath(const std::string &metaDir, const SlaveID &slaveId, const std::string &resourceProviderType, const std::string &resourceProviderName)
std::string getOperationPath(const std::string &rootDir, const id::UUID &operationUuid)
std::string getSlaveOperationUpdatesPath(const std::string &metaDir, const SlaveID &slaveId, const id::UUID &operationUuid)
Try< std::list< std::string > > getOperationPaths(const std::string &rootDir)
const char HTTP_MARKER_FILE[]
Try< std::list< std::string > > getSlaveOperationPaths(const std::string &metaDir, const SlaveID &slaveId)
Definition: attributes.hpp:24
std::string getExecutorHttpMarkerPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
std::string getFrameworkInfoPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId)
std::string getFrameworkPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId)
std::string getResourcesInfoPath(const std::string &rootDir)
std::string getSlaveOperationPath(const std::string &metaDir, const SlaveID &slaveId, const id::UUID &operationUuid)
SlaveID slaveId
Definition: paths.hpp:122
const char LIBPROCESS_PID_FILE[]
Try< ExecutorRunPath > parseExecutorRunPath(const std::string &rootDir, const std::string &dir)
Definition: paths.hpp:120
std::string getLibprocessPidPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
FrameworkID frameworkId
Definition: paths.hpp:123
std::string getPersistentVolumePath(const std::string &workDir, const std::string &role, const std::string &persistenceId)
Try< std::list< std::string > > getPersistentVolumePaths(const std::string &workDir)
Try< std::list< std::string > > getResourceProviderPaths(const std::string &metaDir, const SlaveID &slaveId)
Try< Nothing > createSandboxDirectory(const std::string &directory, const Option< std::string > &user)
std::string getForkedPidPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
std::string getResourceStateTargetPath(const std::string &rootDir)
std::string getDrainConfigPath(const std::string &metaDir, const SlaveID &slaveId)
std::string getExecutorInfoPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId)
std::string getContainerRootfsPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
Try< std::list< std::string > > getContainerPaths(const std::string &rootDir)
std::string getExecutorSentinelPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)
std::string getLatestSlavePath(const std::string &rootDir)
std::string getTaskInfoPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId, const TaskID &taskId)
std::string getTaskUpdatesPath(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId, const TaskID &taskId)
std::string getExecutorVirtualPath(const FrameworkID &frameworkId, const ExecutorID &executorId)
Try< std::list< std::string > > getTaskPaths(const std::string &rootDir, const SlaveID &slaveId, const FrameworkID &frameworkId, const ExecutorID &executorId, const ContainerID &containerId)