sbuild
1.7.1
|
Chroot support for clonable sources. More...
#include <source.h>
Public Types | |
typedef std::shared_ptr< source > | ptr |
A shared_ptr to a chroot facet object. | |
typedef std::shared_ptr< const source > | const_ptr |
A shared_ptr to a const chroot facet object. | |
![]() | |
enum | session_flags { SESSION_NOFLAGS = 0, SESSION_CREATE = 1 << 0, SESSION_CLONE = 1 << 1, SESSION_PURGE = 1 << 2 } |
Chroot session properties. More... | |
typedef std::shared_ptr< facet > | ptr |
A shared_ptr to a chroot facet object. | |
typedef std::shared_ptr< const facet > | const_ptr |
A shared_ptr to a const chroot facet object. | |
Public Member Functions | |
virtual | ~source () |
The destructor. | |
virtual facet::ptr | clone () const |
Copy the chroot facet. More... | |
virtual std::string const & | get_name () const |
Get the name of the chroot facet. More... | |
![]() | |
virtual | ~facet () |
The destructor. | |
virtual void | setup_env (environment &env) const |
Set environment. More... | |
virtual session_flags | get_session_flags () const |
Get the session flags of the chroot. More... | |
virtual void | get_details (format_detail &detail) const |
Get detailed information about the chroot for output. More... | |
virtual void | get_used_keys (string_list &used_keys) const |
Get a list of the keys used during keyfile parsing. More... | |
virtual void | get_keyfile (keyfile &keyfile) const |
Copy the chroot properties into a keyfile. More... | |
virtual void | set_keyfile (const keyfile &keyfile) |
Set the chroot properties from a keyfile. More... | |
Static Public Member Functions | |
static ptr | create () |
Create a chroot facet. More... | |
Private Member Functions | |
source () | |
The constructor. | |
Additional Inherited Members | |
![]() | |
facet () | |
The constructor. | |
virtual void | set_chroot (chroot &chroot, bool copy=false) |
Set containing chroot. More... | |
![]() | |
chroot * | owner |
Chroot owning this facet. | |
Chroot support for clonable sources.
A chroot may offer a "source" facet in addition to its normal "session" copy, to allow for maintenence of the source data. This facet is installed into source chroots to identify them as such, and so modify their session behaviour.
|
virtual |
Copy the chroot facet.
This is a virtual copy constructor.
Implements sbuild::chroot::facet::facet.
References source().
|
static |
Create a chroot facet.
References source().
Referenced by sbuild::chroot::facet::source_clonable::clone_source().
|
virtual |
Get the name of the chroot facet.
Implements sbuild::chroot::facet::facet.