Dobby  3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Public Member Functions | Private Attributes | List of all members
DobbyBundle Class Reference

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 IDobbyUtilsmUtilities
 
bool mPersist
 
std::string mPath
 
int mDirFd
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DobbyBundle()

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.

Parameters
[in]utilsThe daemon utils object.
[in]envThe daemon's environment object, used to get the location of the bundles dir.
[in]bundlePathPath to an OCI bundle.

The documentation for this class was generated from the following files: