sbuild  1.7.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
sbuild::chroot::facet::plain Class Reference

A chroot located in the filesystem (scripts disabled). More...

#include <plain.h>

+ Inheritance diagram for sbuild::chroot::facet::plain:
+ Collaboration diagram for sbuild::chroot::facet::plain:

Public Types

typedef std::shared_ptr< plainptr
 A shared_ptr to a chroot facet object.
 
typedef std::shared_ptr< const
plain
const_ptr
 A shared_ptr to a const chroot facet object.
 
- Public Types inherited from sbuild::chroot::facet::directory_base
typedef chroot::error error
 Exception type.
 
- Public Types inherited from sbuild::chroot::facet::facet
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< facetptr
 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 Types inherited from sbuild::chroot::facet::storage
typedef std::shared_ptr< storageptr
 A shared_ptr to a chroot storage object.
 
typedef std::shared_ptr< const
storage
const_ptr
 A shared_ptr to a const chroot storage object.
 

Public Member Functions

virtual ~plain ()
 The destructor.
 
virtual std::string const & get_name () const
 Get the name of the chroot facet. More...
 
virtual facet::ptr clone () const
 Copy the chroot facet. More...
 
virtual std::string get_path () const
 Get the path to the chroot. More...
 
- Public Member Functions inherited from sbuild::chroot::facet::directory_base
virtual ~directory_base ()
 The destructor.
 
std::string const & get_directory () const
 Get the directory containing the chroot. More...
 
void set_directory (const std::string &directory)
 Set the directory containing the chroot. More...
 
virtual void setup_env (environment &env) const
 Set environment. More...
 
- Public Member Functions inherited from sbuild::chroot::facet::facet
virtual ~facet ()
 The destructor.
 
virtual session_flags get_session_flags () const
 Get the session flags of the chroot. More...
 
- Public Member Functions inherited from sbuild::chroot::facet::storage
virtual ~storage ()
 The destructor.
 
virtual void setup_lock (chroot::setup_type type, bool lock, int status)
 

Static Public Member Functions

static ptr create ()
 Create a chroot facet. More...
 

Protected Member Functions

 plain ()
 The constructor.
 
 plain (const plain &rhs)
 The copy constructor.
 
- Protected Member Functions inherited from sbuild::chroot::facet::directory_base
 directory_base ()
 The constructor.
 
 directory_base (const directory_base &rhs)
 The copy constructor.
 
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...
 
- Protected Member Functions inherited from sbuild::chroot::facet::facet
 facet ()
 The constructor.
 
virtual void set_chroot (chroot &chroot, bool copy=false)
 Set containing chroot. More...
 
- Protected Member Functions inherited from sbuild::chroot::facet::storage
 storage ()
 The constructor.
 

Friends

class chroot
 

Additional Inherited Members

- Protected Attributes inherited from sbuild::chroot::facet::directory_base
std::string directory
 The directory to use.
 

Detailed Description

A chroot located in the filesystem (scripts disabled).

This doesn't run any setup scripts and doesn't provide any session support. If you need any of these functions, the directory chroot type is more suited to your needs.

Member Function Documentation

facet::ptr sbuild::chroot::facet::plain::clone ( ) const
virtual

Copy the chroot facet.

This is a virtual copy constructor.

Returns
a shared_ptr to the new copy of the chroot facet.

Implements sbuild::chroot::facet::facet.

References plain().

plain::ptr sbuild::chroot::facet::plain::create ( )
static

Create a chroot facet.

Returns
a shared_ptr to the new chroot facet.

References plain().

std::string const & sbuild::chroot::facet::plain::get_name ( ) const
virtual

Get the name of the chroot facet.

Returns
the chroot facet name.

Implements sbuild::chroot::facet::facet.

std::string sbuild::chroot::facet::plain::get_path ( ) const
virtual

Get the path to the chroot.

This is the absolute path to the root of the chroot, and is typically the same as the mount location and location concatenated together, but is overridden by the chroot type if required.

Returns
the path.

Implements sbuild::chroot::facet::storage.

References sbuild::chroot::facet::directory_base::get_directory().


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