CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife::CommandTag Class Reference

#include <swissknife_history.h>

Inheritance diagram for swissknife::CommandTag:
Collaboration diagram for swissknife::CommandTag:

Classes

struct  Environment
 

Public Member Functions

 CommandTag ()
 
- Public Member Functions inherited from swissknife::Command
 Command ()
 
virtual ~Command ()
 
virtual std::string GetName () const =0
 
virtual std::string GetDescription () const =0
 
virtual ParameterList GetParams () const =0
 
virtual int Main (const ArgumentList &args)=0
 
- Public Member Functions inherited from ServerTool
 ServerTool ()
 
virtual ~ServerTool ()
 
bool InitDownloadManager (const bool follow_redirects, const std::string &proxy, const unsigned max_pool_handles=1)
 
bool InitVerifyingSignatureManager (const std::string &pubkey_path)
 
bool InitSigningSignatureManager (const std::string &certificate_path, const std::string &private_key_path, const std::string &private_key_password)
 
manifest::ManifestOpenLocalManifest (const std::string path) const
 
manifest::Failures FetchRemoteManifestEnsemble (const std::string &repository_url, const std::string &repository_name, manifest::ManifestEnsemble *ensemble) const
 
manifest::ManifestFetchRemoteManifest (const std::string &repository_url, const std::string &repository_name, const shash::Any &base_hash=shash::Any()) const
 
template<class ObjectFetcherT >
manifest::ReflogFetchReflog (ObjectFetcherT *object_fetcher, const std::string &repo_name, const shash::Any &reflog_hash)
 
manifest::ReflogCreateEmptyReflog (const std::string &temp_directory, const std::string &repo_name)
 
download::DownloadManagerdownload_manager () const
 
signature::SignatureManagersignature_manager () const
 
perf::Statisticsstatistics ()
 
const perf::Statisticsstatistics () const
 

Static Public Attributes

static const std::string kHeadTagDescription = "current HEAD"
 
static const std::string kPreviousHeadTagDescription
 
- Static Public Attributes inherited from swissknife::Command
static const char kGenericParam = '+'
 
static const char kGenericParamSeparator = ','
 

Protected Types

typedef std::vector
< history::History::Tag
TagList
 
typedef std::vector
< history::History::Branch
BranchList
 

Protected Member Functions

EnvironmentInitializeEnvironment (const ArgumentList &args, const bool read_write)
 
bool CloseAndPublishHistory (Environment *environment)
 
bool UploadCatalogAndUpdateManifest (Environment *env, catalog::WritableCatalog *catalog)
 
void UploadClosure (const upload::SpoolerResult &result, Future< shash::Any > *hash)
 
bool UpdateUndoTags (Environment *env, const history::History::Tag &current_head_template, const bool undo_rollback=false)
 
bool FetchObject (const std::string &repository_url, const shash::Any &object_hash, const std::string &destination_path) const
 
history::HistoryGetHistory (const manifest::Manifest *manifest, const std::string &repository_url, const std::string &history_path, const bool read_write) const
 
catalog::CatalogGetCatalog (const std::string &repository_url, const shash::Any &catalog_hash, const std::string catalog_path, const bool read_write) const
 
void PrintTagMachineReadable (const history::History::Tag &tag) const
 
std::string AddPadding (const std::string &str, const size_t padding, const bool align_right=false, const std::string &fill_char=" ") const
 
bool IsUndoTagName (const std::string &tag_name) const
 

Static Private Attributes

static const std::string kHeadTag = "trunk"
 
static const std::string kPreviousHeadTag = "trunk-previous"
 

Additional Inherited Members

- Protected Attributes inherited from ServerTool
UniquePtr
< download::DownloadManager
download_manager_
 
UniquePtr
< signature::SignatureManager
signature_manager_
 
perf::Statistics statistics_
 

Detailed Description

Definition at line 39 of file repository.cc.

Member Typedef Documentation

Definition at line 44 of file swissknife_history.h.

Definition at line 43 of file swissknife_history.h.

Constructor & Destructor Documentation

swissknife::CommandTag::CommandTag ( )
inline

Definition at line 40 of file swissknife_history.h.

Member Function Documentation

std::string CommandTag::AddPadding ( const std::string &  str,
const size_t  padding,
const bool  align_right = false,
const std::string &  fill_char = " " 
) const
protected

Definition at line 416 of file swissknife_history.cc.

Here is the call graph for this function:

bool CommandTag::CloseAndPublishHistory ( Environment environment)
protected

Definition at line 192 of file swissknife_history.cc.

Here is the call graph for this function:

bool CommandTag::FetchObject ( const std::string &  repository_url,
const shash::Any object_hash,
const std::string &  destination_path 
) const
protected

Definition at line 334 of file swissknife_history.cc.

Here is the call graph for this function:

catalog::Catalog * CommandTag::GetCatalog ( const std::string &  repository_url,
const shash::Any catalog_hash,
const std::string  catalog_path,
const bool  read_write 
) const
protected

Definition at line 390 of file swissknife_history.cc.

Here is the call graph for this function:

history::History * CommandTag::GetHistory ( const manifest::Manifest manifest,
const std::string &  repository_url,
const std::string &  history_path,
const bool  read_write 
) const
protected

Definition at line 356 of file swissknife_history.cc.

Here is the call graph for this function:

CommandTag::Environment * CommandTag::InitializeEnvironment ( const ArgumentList args,
const bool  read_write 
)
protected

Definition at line 44 of file swissknife_history.cc.

Here is the call graph for this function:

bool CommandTag::IsUndoTagName ( const std::string &  tag_name) const
protected

Definition at line 428 of file swissknife_history.cc.

void CommandTag::PrintTagMachineReadable ( const history::History::Tag tag) const
protected

Definition at line 406 of file swissknife_history.cc.

Here is the call graph for this function:

bool CommandTag::UpdateUndoTags ( Environment env,
const history::History::Tag current_head_template,
const bool  undo_rollback = false 
)
protected

Definition at line 288 of file swissknife_history.cc.

Here is the call graph for this function:

bool CommandTag::UploadCatalogAndUpdateManifest ( CommandTag::Environment env,
catalog::WritableCatalog catalog 
)
protected

Definition at line 234 of file swissknife_history.cc.

Here is the call graph for this function:

void CommandTag::UploadClosure ( const upload::SpoolerResult result,
Future< shash::Any > *  hash 
)
protected

Definition at line 276 of file swissknife_history.cc.

Here is the call graph for this function:

Member Data Documentation

static const std::string swissknife::CommandTag::kHeadTag = "trunk"
staticprivate
const std::string CommandTag::kHeadTagDescription = "current HEAD"
static

Definition at line 36 of file swissknife_history.h.

static const std::string swissknife::CommandTag::kPreviousHeadTag = "trunk-previous"
staticprivate
const std::string CommandTag::kPreviousHeadTagDescription
static
Initial value:
=
"default undo target"

Definition at line 38 of file swissknife_history.h.

Referenced by swissknife::CommandMigrate::UpdateUndoTags().


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