5 #ifndef CVMFS_REFLOG_H_
6 #define CVMFS_REFLOG_H_
40 static Reflog *
Open(
const std::string &database_path);
42 const std::string &repo_name);
43 static void HashDatabase(
const std::string &database_path,
56 std::vector<shash::Any> *hashes)
const;
59 std::vector<shash::Any> *hashes)
const;
69 uint64_t *timestamp)
const;
81 std::string
fqrn()
const;
91 uint64_t *timestamp)
const;
95 const std::string &repo_name);
113 #endif // CVMFS_REFLOG_H_
bool ContainsReference(const shash::Any &hash, const SqlReflog::ReferenceType type) const
void TakeDatabaseFileOwnership()
std::string database_file() const
bool ContainsHistory(const shash::Any &history) const
const manifest::Manifest * manifest() const
bool AddHistory(const shash::Any &history)
UniquePtr< ReflogDatabase > database_
bool GetCatalogTimestamp(const shash::Any &catalog, uint64_t *timestamp) const
UniquePtr< SqlListReferences > list_references_
static bool ReadChecksum(const std::string &path, shash::Any *checksum)
const history::History * history() const
bool AddReference(const shash::Any &hash, const SqlReflog::ReferenceType type)
bool OwnsDatabaseFile() const
bool AddCatalog(const shash::Any &catalog)
static Reflog * Create(const std::string &database_path, const std::string &repo_name)
bool ContainsMetainfo(const shash::Any &metainfo) const
UniquePtr< SqlRemoveReference > remove_reference_
static Reflog * Open(const std::string &database_path)
bool OpenDatabase(const std::string &database_path)
bool AddMetainfo(const shash::Any &metainfo)
bool Remove(const shash::Any &hash)
UniquePtr< SqlCountReferences > count_references_
bool List(SqlReflog::ReferenceType type, std::vector< shash::Any > *hashes) const
static void HashDatabase(const std::string &database_path, shash::Any *hash_reflog)
bool GetReferenceTimestamp(const shash::Any &hash, const SqlReflog::ReferenceType type, uint64_t *timestamp) const
bool ListOlderThan(SqlReflog::ReferenceType type, uint64_t timestamp, std::vector< shash::Any > *hashes) const
void DropDatabaseFileOwnership()
bool AddCertificate(const shash::Any &certificate)
UniquePtr< SqlInsertReference > insert_reference_
bool ContainsCatalog(const shash::Any &catalog) const
UniquePtr< SqlContainsReference > contains_reference_
static bool WriteChecksum(const std::string &path, const shash::Any &value)
bool ContainsCertificate(const shash::Any &certificate) const
bool CreateDatabase(const std::string &database_path, const std::string &repo_name)
UniquePtr< SqlGetTimestamp > get_timestamp_