18 const std::string &proxy,
19 const unsigned max_pool_handles) {
37 if (follow_redirects) {
63 const std::string &certificate_path,
const std::string &private_key_path,
64 const std::string &private_key_password) {
76 certificate_path.c_str());
82 private_key_password)) {
84 private_key_path.c_str(),
91 "the private key '%s' doesn't seem to match certificate '%s' (%s)",
92 private_key_path.c_str(), certificate_path.c_str(),
112 const std::string path)
const {
117 const std::string &repository_url,
const std::string &repository_name,
119 const uint64_t minimum_timestamp = 0;
121 return manifest::Fetch(repository_url, repository_name, minimum_timestamp,
127 const std::string &repository_url,
const std::string &repository_name,
134 repository_url, repository_name, &manifest_ensemble);
138 "failed to fetch repository manifest "
155 if (!base_hash.
IsNull() && manifest->catalog_hash() != base_hash) {
157 "base hash does not match manifest "
158 "(found: %s expected: %s)",
159 manifest->catalog_hash().ToString().c_str(),
169 const std::string &temp_directory,
const std::string &repo_name) {
171 const std::string tmp_path_prefix = temp_directory +
"/new_reflog";
172 const std::string tmp_path =
CreateTempPath(tmp_path_prefix, 0600);
175 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,...)