Logo Search packages:      
Sourcecode: schroot version File versions  Download package

sbuild::chroot_file Class Reference

#include <sbuild-chroot-file.h>

Inheritance diagram for sbuild::chroot_file:

sbuild::chroot sbuild::chroot_source sbuild::chroot

List of all members.

Detailed Description

A chroot stored in a file archive (tar or zip). The archive will be unpacked on demand.

Optionally mount and then unpack onto a tmpfs, to save using a lot of space under /var. However, this will require careful checking and/or restrictions in order to prevent resource starvation (using all swap space, for example).

Definition at line 38 of file sbuild-chroot-file.h.

Public Types

typedef runtime_error_custom
< chroot
 Exception type.
typedef std::tr1::shared_ptr
< chroot
 A shared_ptr to a chroot object.
enum  session_flags { SESSION_CREATE = 1 << 0 }
 Chroot session properties. More...
enum  setup_type {
 Type of setup to perform. More...

Public Member Functions

virtual chroot::ptr clone () const
virtual chroot::ptr clone_source () const
bool get_active () const
string_list const & get_aliases () const
virtual std::string const & get_chroot_type () const
string_list const & get_command_prefix () const
std::string const & get_description () const
std::string const & get_file () const
string_list const & get_groups () const
virtual std::string const & get_location () const
virtual std::string const & get_mount_device () const
virtual std::string const & get_mount_location () const
std::string const & get_name () const
virtual std::string get_path () const
unsigned int get_priority () const
string_list const & get_root_groups () const
bool get_run_exec_scripts () const
bool get_run_setup_scripts () const
virtual session_flags get_session_flags () const
virtual string_list const & get_source_groups () const
virtual string_list const & get_source_root_groups () const
void set_active (bool active)
void set_aliases (string_list const &aliases)
void set_command_prefix (string_list const &command_prefix)
void set_description (std::string const &description)
void set_file (std::string const &file)
void set_groups (string_list const &groups)
void set_mount_device (std::string const &device)
void set_mount_location (std::string const &location)
void set_name (std::string const &name)
void set_priority (unsigned int priority)
void set_root_groups (string_list const &groups)
void set_run_exec_scripts (bool run_exec_scripts)
void set_run_setup_scripts (bool run_setup_scripts)
virtual void set_source_groups (string_list const &groups)
virtual void set_source_root_groups (string_list const &groups)
virtual void setup_env (environment &env)
virtual void setup_lock (setup_type type, bool lock)
virtual ~chroot_file ()
 The destructor.

Static Public Member Functions

static ptr create (std::string const &type)

Protected Member Functions

 chroot_file ()
 The constructor.
void clone_source_setup (chroot::ptr &clone) const
template<typename T>
format_detail< T > format_details (std::string const &name, T const &value) const
virtual void get_keyfile (keyfile &keyfile) const
virtual void print_details (std::ostream &stream) const
virtual void set_keyfile (keyfile const &keyfile)
virtual void set_location (std::string const &location)
virtual void setup_session_info (bool start)

Private Attributes

std::string file
 The file to use.
bool repack
 Should the chroot be repacked?


class chroot
keyfileoperator<< (keyfile &keyfile, ptr const &rhs)
std::ostream & operator<< (std::ostream &stream, ptr const &rhs)
keyfile const & operator>> (keyfile const &keyfile, ptr &rhs)

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

Generated by  Doxygen 1.6.0   Back to index