18 const std::string &proxy,
19 const unsigned max_pool_handles) {
37 if (follow_redirects) {
45 const std::string &pubkey_path,
46 const std::string &certificate_path,
47 const std::string &private_key_path)
59 if (!pubkey_path.empty()) {
69 if (certificate_path.empty())
74 certificate_path.c_str());
81 private_key_path.c_str(),
88 "the private key '%s' doesn't seem to match certificate '%s' (%s)",
89 private_key_path.c_str(), certificate_path.c_str(),
109 const std::string path)
const {
114 const std::string &repository_url,
const std::string &repository_name,
116 const uint64_t minimum_timestamp = 0;
118 return manifest::Fetch(repository_url, repository_name, minimum_timestamp,
124 const std::string &repository_url,
const std::string &repository_name,
131 repository_url, repository_name, &manifest_ensemble);
135 "failed to fetch repository manifest "
152 if (!base_hash.
IsNull() && manifest->catalog_hash() != base_hash) {
154 "base hash does not match manifest "
155 "(found: %s expected: %s)",
156 manifest->catalog_hash().ToString().c_str(),
166 const std::string &temp_directory,
const std::string &repo_name) {
168 const std::string tmp_path_prefix = temp_directory +
"/new_reflog";
169 const std::string tmp_path =
CreateTempPath(tmp_path_prefix, 0600);
172 tmp_path.c_str(), repo_name.c_str());
const manifest::Manifest * manifest() const
std::string ToString(const bool with_suffix=false) const
std::string CreateTempPath(const std::string &path_prefix, const int mode)
assert((mem||(size==0))&&"Out Of Memory")
static Reflog * Create(const std::string &database_path, const std::string &repo_name)
Failures Fetch(const std::string &base_url, const std::string &repository_name, const uint64_t minimum_timestamp, const shash::Any *base_catalog, signature::SignatureManager *signature_manager, download::DownloadManager *download_manager, ManifestEnsemble *ensemble)
static Manifest * LoadFile(const std::string &path)
const char * Code2Ascii(const Failures error)
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)