sbuild  1.7.1
Public Types | Public Member Functions | Protected Member Functions | List of all members
sbuild::chroot::facet::session_setup Class Referenceabstract

Common chroot data. More...

#include <session-setup.h>

+ Inheritance diagram for sbuild::chroot::facet::session_setup:

Public Types

typedef std::shared_ptr
< session_setup
ptr
 A shared_ptr to a chroot session_setup object.
 
typedef std::shared_ptr< const
session_setup
const_ptr
 A shared_ptr to a const chroot session_setup object.
 

Public Member Functions

virtual ~session_setup ()
 The destructor.
 
virtual void chroot_session_setup (const chroot &parent, const std::string &session_id, const std::string &alias, const std::string &user, bool root)=0
 Set up a newly-cloned session chroot. More...
 

Protected Member Functions

 session_setup ()
 The constructor.
 

Detailed Description

Common chroot data.

This class contains all of the metadata associated with a single chroot, for all chroot types. This is the in-core representation of a chroot definition in the configuration file, and may be initialised directly from an open keyfile.

Member Function Documentation

virtual void sbuild::chroot::facet::session_setup::chroot_session_setup ( const chroot parent,
const std::string &  session_id,
const std::string &  alias,
const std::string &  user,
bool  root 
)
pure virtual

Set up a newly-cloned session chroot.

Parameters
parentthe parent of the cloned chroot.
session_idthe identifier (session_id) for the new session.
aliasused to initially identify the chroot.
userthe user creating the session.
roottrue if the user has root access, otherwise false.

Implemented in sbuild::chroot::facet::fsunion, sbuild::chroot::facet::btrfs_snapshot, sbuild::chroot::facet::lvm_snapshot, sbuild::chroot::facet::loopback, and sbuild::chroot::facet::block_device.

Referenced by sbuild::chroot::facet::session_clonable::clone_session().

+ Here is the caller graph for this function:


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