Dobby
3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
|
Class that represents a single mount within a container when the source exists on the host. More...
#include <DynamicMountDetails.h>
Public Member Functions | |
DynamicMountDetails (DynamicMountDetails &)=delete | |
DynamicMountDetails (DynamicMountDetails &&)=delete | |
DynamicMountDetails (const std::string &rootfsPath, const DynamicMountProperties &mount, const std::shared_ptr< DobbyRdkPluginUtils > &utils) | |
bool | onCreateRuntime () const |
Creates destination path so it exists before mounting. More... | |
bool | onCreateContainer () const |
Adds bind mount only if source exists on the host. More... | |
bool | onPostStop () const |
Unmounts dynamic mounts. More... | |
Private Member Functions | |
bool | addMount () const |
Add mount between source and destination. More... | |
Private Attributes | |
const std::string | mRootfsPath |
DynamicMountProperties | mMountProperties |
const std::shared_ptr< DobbyRdkPluginUtils > | mUtils |
Friends | |
class | Storage |
Class that represents a single mount within a container when the source exists on the host.
This class is only intended to be used internally by Storage plugin do not use from external code.
|
private |
Add mount between source and destination.
bool DynamicMountDetails::onCreateContainer | ( | ) | const |
Adds bind mount only if source exists on the host.
bool DynamicMountDetails::onCreateRuntime | ( | ) | const |
Creates destination path so it exists before mounting.
bool DynamicMountDetails::onPostStop | ( | ) | const |
Unmounts dynamic mounts.