GCC Code Coverage Report
Directory: cvmfs/ Exec Total Coverage
File: cvmfs/receiver/params.h Lines: 1 1 100.0 %
Date: 2019-02-03 02:48:13 Branches: 0 0 - %

Line Branch Exec Source
1
/**
2
 * This file is part of the CernVM File System.
3
 */
4
5
#ifndef CVMFS_RECEIVER_PARAMS_H_
6
#define CVMFS_RECEIVER_PARAMS_H_
7
8
#include <string>
9
10
#include "compression.h"
11
#include "hash.h"
12
13
namespace receiver {
14
15
std::string GetSpoolerTempDir(const std::string& spooler_config);
16
17
2
struct Params {
18
  std::string stratum0;
19
  std::string spooler_configuration;
20
  shash::Algorithms hash_alg;
21
  std::string hash_alg_str;
22
  zlib::Algorithms compression_alg;
23
  bool generate_legacy_bulk_chunks;
24
  bool use_file_chunking;
25
  size_t min_chunk_size;
26
  size_t avg_chunk_size;
27
  size_t max_chunk_size;
28
  bool enforce_limits;
29
  size_t nested_kcatalog_limit;
30
  size_t root_kcatalog_limit;
31
  size_t file_mbyte_limit;
32
  bool use_autocatalogs;
33
  size_t max_weight;
34
  size_t min_weight;
35
};
36
37
bool GetParamsFromFile(const std::string& repo_name, Params* params);
38
39
}  // namespace receiver
40
41
#endif  // CVMFS_RECEIVER_PARAMS_H_