|
softwarecontainer
0.18.0-739e8d7 2017-05-04
|
Public Member Functions | |
| ContainerUtilityInterface (std::shared_ptr< Config > config) | |
| void | removeOldContainers (void) |
| This method cleans unused old containers before agent starts up. More... | |
| void | checkWorkspace (void) |
| Check that the workspace exists. More... | |
Private Member Functions | |
| bool | bindMount (const std::string &src, const std::string &dst, const std::string &tmpContainerRoot, bool readOnly, bool writeBufferEnabled=false) |
| bindMount Bind mount a src directory to another position dst. More... | |
| bool | tmpfsMount (const std::string dst, const int maxSize) |
| tmpfsMount Mount a tmpfs in the dst path and limit size of the tmpfs to maxSize More... | |
| bool | writeToFile (const std::string &path, const std::string &content) |
| void | markFileForDeletion (const std::string &path) |
| bool | overlayMount (const std::string &lower, const std::string &upper, const std::string &work, const std::string &dst) |
| overlayMount Mount a directory with an overlay on top of it. More... | |
| bool | syncOverlayMount (const std::string &lower, const std::string &upper) |
| syncOverlayMount Copy the directory structure from upper layer to the lower layer More... | |
| bool | createSharedMountPoint (const std::string &path) |
| createSharedMountPoint Make the mount point shared, ie new mount points created in one bind mount will also be created in the other mount point. More... | |
| bool | pathInList (const std::string path) |
| checks whether given path is already added to clean up handlers or not More... | |
Private Attributes | |
| std::vector< std::unique_ptr< CleanUpHandler > > | m_cleanupHandlers |
| m_cleanupHandlers A vector of cleanupHandlers added during the lifetime of the FileToolKitWithUndo that will be run from the destructor. More... | |
| std::vector< std::unique_ptr< CreateDir > > | m_createDirList |
| m_createDirList A vector of CreateDir classes. More... | |
Definition at line 68 of file containerutilityinterface.h.
| void softwarecontainer::ContainerUtilityInterface::removeOldContainers | ( | void | ) |
This method cleans unused old containers before agent starts up.
Definition at line 34 of file containerutilityinterface.cpp.
| void softwarecontainer::ContainerUtilityInterface::checkWorkspace | ( | void | ) |
Check that the workspace exists.
Definition at line 81 of file containerutilityinterface.cpp.
References softwarecontainer::isDirectory().