5 #ifndef CVMFS_HISTORY_H_
6 #define CVMFS_HISTORY_H_
37 Branch(
const std::string &b,
const std::string &p, uint64_t r)
66 const uint64_t r,
const time_t t,
const std::string &d,
67 const std::string &b) :
128 virtual bool Insert(
const Tag &tag) = 0;
129 virtual bool Remove(
const std::string &name) = 0;
130 virtual bool Exists(
const std::string &name)
const = 0;
131 virtual bool GetByName(
const std::string &name, Tag *tag)
const = 0;
132 virtual bool GetByDate(
const time_t timestamp, Tag *tag)
const = 0;
133 virtual bool List(std::vector<Tag> *tags)
const = 0;
135 virtual bool GetBranchHead(
const std::string &branch_name, Tag *tag)
137 virtual bool ExistsBranch(
const std::string &branch_name)
const = 0;
144 virtual bool ListBranches(std::vector<Branch> *branches)
const = 0;
150 virtual bool ListRecycleBin(std::vector<shash::Any> *hashes)
const = 0;
163 virtual bool Rollback(
const Tag &updated_target_tag) = 0;
176 std::vector<Tag> *tags)
const = 0;
184 virtual bool GetHashes(std::vector<shash::Any> *hashes)
const = 0;
191 virtual bool Vacuum() = 0;
204 #endif // CVMFS_HISTORY_H_
bool operator<(const Branch &other) const
virtual bool PruneBranches()=0
const history::History * history() const
virtual bool Exists(const std::string &name) const =0
virtual shash::Any previous_revision() const =0
virtual bool SetPreviousRevision(const shash::Any &history_hash)=0
virtual bool CommitTransaction() const =0
virtual unsigned GetNumberOfTags() const =0
bool operator==(const Tag &other) const
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)
const std::string & fqrn() const
virtual bool GetByDate(const time_t timestamp, Tag *tag) const =0
bool operator>(const Tag &other) const
bool operator==(const Branch &other) const
virtual bool ListBranches(std::vector< Branch > *branches) const =0
virtual bool IsWritable() const =0
virtual bool List(std::vector< Tag > *tags) const =0
virtual bool InsertBranch(const Branch &branch)=0
virtual void DropDatabaseFileOwnership()=0
virtual bool ListRecycleBin(std::vector< shash::Any > *hashes) const =0
virtual bool GetHashes(std::vector< shash::Any > *hashes) const =0
virtual bool Remove(const std::string &name)=0
virtual bool ListTagsAffectedByRollback(const std::string &target_tag_name, std::vector< Tag > *tags) const =0
Branch(const std::string &b, const std::string &p, uint64_t r)
virtual bool ExistsBranch(const std::string &branch_name) const =0
virtual bool OwnsDatabaseFile() const =0
virtual bool Rollback(const Tag &updated_target_tag)=0
virtual bool GetByName(const std::string &name, Tag *tag) const =0
void set_fqrn(const std::string &fqrn)
virtual bool Insert(const Tag &tag)=0
virtual bool GetBranchHead(const std::string &branch_name, Tag *tag) const =0
virtual void TakeDatabaseFileOwnership()=0
uint64_t initial_revision
virtual bool EmptyRecycleBin()=0
bool operator<(const Tag &other) const
virtual bool BeginTransaction() const =0