CernVM-FS
2.12.0
|
#include <history.h>
Public Member Functions | |
Tag () | |
Tag (const std::string &n, const shash::Any &h, const uint64_t s, const uint64_t r, const time_t t, const std::string &d, const std::string &b) | |
bool | operator== (const Tag &other) const |
bool | operator< (const Tag &other) const |
bool | operator> (const Tag &other) const |
Public Attributes | |
std::string | name |
shash::Any | root_hash |
uint64_t | size |
uint64_t | revision |
time_t | timestamp |
std::string | description |
std::string | branch |
The Tag structure contains information about one specific named snap- shot stored in the history database. Tags can be retrieved from this history class both by 'name' and by 'date'. By 'date' branches only look in the default branch. Naturally, tags can also be saved into the History using this struct as a container.
|
inline |
|
inline |
|
inline |
|
inline |
std::string history::History::Tag::branch |
The default branch is the empty string.
Definition at line 97 of file history.h.
Referenced by swissknife::CommandEditTag::AddNewTag(), history::SqlInsertTag::BindTag(), swissknife::CommandRollbackTag::Main(), swissknife::CommandEditTag::MoveTag(), operator==(), swissknife::CommandInfoTag::PrintHumanReadableInfo(), swissknife::CommandTag::PrintTagMachineReadable(), and history::SqlRetrieveTag< SqlRollback< SqlHistory > >::RetrieveTag().
std::string history::History::Tag::description |
Definition at line 93 of file history.h.
Referenced by swissknife::CommandEditTag::AddNewTag(), history::SqlInsertTag::BindTag(), swissknife::CommandEditTag::MoveTag(), swissknife::CommandInfoTag::PrintHumanReadableInfo(), swissknife::CommandTag::PrintTagMachineReadable(), history::SqlRetrieveTag< SqlRollback< SqlHistory > >::RetrieveTag(), history::SqliteHistory::Rollback(), swissknife::CommandTag::UpdateUndoTags(), and swissknife::CommandMigrate::UpdateUndoTags().
std::string history::History::Tag::name |
Definition at line 88 of file history.h.
Referenced by swissknife::CommandEditTag::AddNewTag(), history::SqlInsertTag::BindTag(), history::SqlRollback< SqlHistory >::BindTargetTag(), swissknife::CommandEditTag::CreateTag(), MountPoint::DetermineRootHash(), anonymous_namespace{repository_diff.cc}::GetTag(), swissknife::CommandRollbackTag::Main(), swissknife::CommandEditTag::ManipulateTag(), swissknife::CommandEditTag::MoveTag(), anonymous_namespace{cmd_diff.cc}::DiffReporter::OnInit(), swissknife::CommandInfoTag::PrintHumanReadableInfo(), swissknife::CommandTag::PrintTagMachineReadable(), swissknife::CommandEditTag::RemoveTags(), history::SqlRetrieveTag< SqlRollback< SqlHistory > >::RetrieveTag(), history::SqliteHistory::Rollback(), swissknife::CommandTag::UpdateUndoTags(), and swissknife::CommandMigrate::UpdateUndoTags().
uint64_t history::History::Tag::revision |
Definition at line 91 of file history.h.
Referenced by swissknife::CommandEditTag::AddNewTag(), history::SqlInsertTag::BindTag(), history::SqlRollback< SqlHistory >::BindTargetTag(), swissknife::CommandRollbackTag::Main(), anonymous_namespace{cmd_diff.cc}::DiffReporter::OnInit(), operator<(), operator==(), operator>(), swissknife::CommandInfoTag::PrintHumanReadableInfo(), swissknife::CommandTag::PrintTagMachineReadable(), history::SqlRetrieveTag< SqlRollback< SqlHistory > >::RetrieveTag(), and swissknife::CommandMigrate::UpdateUndoTags().
shash::Any history::History::Tag::root_hash |
Definition at line 89 of file history.h.
Referenced by swissknife::CommandEditTag::AddNewTag(), history::SqlInsertTag::BindTag(), MountPoint::DetermineRootHash(), swissknife::CommandCheck::Main(), swissknife::CommandRollbackTag::Main(), swissknife::CommandEditTag::MoveTag(), swissknife::CommandInfoTag::PrintHumanReadableInfo(), swissknife::CommandTag::PrintTagMachineReadable(), swissknife::CommandEditTag::RemoveTags(), history::SqlRetrieveTag< SqlRollback< SqlHistory > >::RetrieveTag(), and swissknife::CommandMigrate::UpdateUndoTags().
uint64_t history::History::Tag::size |
Definition at line 90 of file history.h.
Referenced by swissknife::CommandEditTag::AddNewTag(), history::SqlInsertTag::BindTag(), swissknife::CommandCheck::Main(), swissknife::CommandRollbackTag::Main(), swissknife::CommandInfoTag::PrintHumanReadableInfo(), swissknife::CommandTag::PrintTagMachineReadable(), history::SqlRetrieveTag< SqlRollback< SqlHistory > >::RetrieveTag(), and swissknife::CommandMigrate::UpdateUndoTags().
time_t history::History::Tag::timestamp |
Definition at line 92 of file history.h.
Referenced by swissknife::CommandEditTag::AddNewTag(), history::SqlInsertTag::BindTag(), swissknife::CommandRollbackTag::Main(), anonymous_namespace{cmd_diff.cc}::DiffReporter::OnInit(), operator<(), operator>(), swissknife::CommandInfoTag::PrintHumanReadableInfo(), swissknife::CommandTag::PrintTagMachineReadable(), history::SqlRetrieveTag< SqlRollback< SqlHistory > >::RetrieveTag(), and swissknife::CommandMigrate::UpdateUndoTags().