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

Class that represents a single mount within a container when the source exists on the host. More...

#include <DynamicMountDetails.h>

Collaboration diagram for DynamicMountDetails:
Collaboration graph
[legend]

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< DobbyRdkPluginUtilsmUtils
 

Friends

class Storage
 

Detailed Description

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.

See also
Storage

Member Function Documentation

◆ addMount()

bool DynamicMountDetails::addMount ( ) const
private

Add mount between source and destination.

Returns
true on success, false on failure.

◆ onCreateContainer()

bool DynamicMountDetails::onCreateContainer ( ) const

Adds bind mount only if source exists on the host.

Returns
true on success, false on failure.

◆ onCreateRuntime()

bool DynamicMountDetails::onCreateRuntime ( ) const

Creates destination path so it exists before mounting.

Returns
true on success, false on failure.

◆ onPostStop()

bool DynamicMountDetails::onPostStop ( ) const

Unmounts dynamic mounts.

Returns
true on success, false on failure.

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