Dobby
3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
|
Simple class that just creates a subdir in the bundles directory. More...
#include <DobbyBundle.h>
Public Member Functions | |
DobbyBundle (const std::shared_ptr< const IDobbyUtils > &utils, const std::shared_ptr< const IDobbyEnv > &env, const std::string &bundlePath) | |
Constructor that populates member variables in the object based on bundlePath. More... | |
bool | isValid () const |
const std::string & | path () const |
int | dirFd () const |
void | setPersistence (bool persist) |
bool | getPersistence () const |
Private Attributes | |
const std::shared_ptr< const IDobbyUtils > | mUtilities |
bool | mPersist |
std::string | mPath |
int | mDirFd |
Simple class that just creates a subdir in the bundles directory.
When this object is destroyed it will delete the entire contents of the directory it created as well as the directory itself.
DobbyBundle::DobbyBundle | ( | const std::shared_ptr< const IDobbyUtils > & | utils, |
const std::shared_ptr< const IDobbyEnv > & | env, | ||
const std::string & | bundlePath | ||
) |
Constructor that populates member variables in the object based on bundlePath.
[in] | utils | The daemon utils object. |
[in] | env | The daemon's environment object, used to get the location of the bundles dir. |
[in] | bundlePath | Path to an OCI bundle. |