CernVM-FS  2.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
settings.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_PUBLISH_SETTINGS_H_
6 #define CVMFS_PUBLISH_SETTINGS_H_
7 
8 #include <stdint.h>
9 #include <unistd.h>
10 
11 #include <map>
12 #include <string>
13 
14 #include "compression.h"
15 #include "hash.h"
16 #include "sync_union.h"
18 
19 class OptionsManager;
20 
21 namespace publish {
22 
28 template <class T>
29 class Setting {
30  public:
31  Setting() : value_(), is_default_(true) { }
32  explicit Setting(const T &v) : value_(v), is_default_(true) { }
33 
34  Setting& operator=(const T &v) {
35  value_ = v;
36  is_default_ = false;
37  return *this;
38  }
39 
40  const T& operator()() const {
41  return value_;
42  }
43 
44  bool SetIfDefault(const T &v) {
45  if (!is_default_) return false;
46  value_ = v;
47  is_default_ = false;
48  return true;
49  }
50 
51  bool is_default() const { return is_default_; }
52 
53  T* GetPtr() { return &value_; }
54 
55  private:
56  T value_;
58 }; // Setting
59 
60 
68 };
69 
70 
71 // Settings from the point of construction always represent a valid
72 // configuration. The constructor sets default values, which can be overwritten
73 // by setters. The setters throw errors when invalid options are detected.
74 
76  public:
77  explicit SettingsSpoolArea(const std::string &fqrn)
78  : workspace_(std::string("/var/spool/cvmfs/") + fqrn)
79  , tmp_dir_(workspace_() + "/tmp")
80  , union_mnt_(std::string("/cvmfs/") + fqrn)
82  { }
83 
84  void UseSystemTempDir();
85  void SetSpoolArea(const std::string &path);
86  void SetUnionMount(const std::string &path);
87  void SetRepairMode(const EUnionMountRepairMode val);
88 
89  // Creates, if necessary, all the directories in the spool area and the temp
90  // directory. Does not take care of the union mount point.
91  void EnsureDirectories();
92 
93  std::string workspace() const { return workspace_(); }
94  std::string tmp_dir() const { return tmp_dir_(); }
95  std::string readonly_mnt() const { return workspace_() + "/rdonly"; }
96  std::string readonly_talk_socket() const {
97  return workspace_() + "/cvmfs_io";
98  }
99  std::string union_mnt() const { return union_mnt_(); }
100  std::string scratch_base() const { return workspace_() + "/scratch"; }
101  std::string scratch_dir() const { return scratch_base() + "/current"; }
102  std::string scratch_wastebin() const { return scratch_base() + "/wastebin"; }
103  std::string log_dir() const { return workspace() + "/logs"; }
104  // TODO(jblomer): shouldn't this be in /etc/cvmfs/repositor.../client.conf
105  std::string client_config() const { return workspace_() + "/client.config"; }
106  std::string client_lconfig() const { return workspace_() + "/client.local"; }
107  std::string client_log() const { return log_dir() + "/cvmfs.log"; }
108  std::string cache_dir() const { return workspace_() + "/cache"; }
109  std::string ovl_work_dir() const { return workspace_() + "/ovl_work"; }
110  std::string checkout_marker() const { return workspace_() + "/checkout"; }
111  std::string gw_session_token() const {
112  return workspace_() + "/session_token";
113  }
114  std::string transaction_lock() const {
115  return workspace_() + "/in_transaction.lock";
116  }
117  std::string publishing_lock() const {
118  return workspace_() + "/is_publishing.lock";
119  }
121 
122  private:
130 }; // SettingsSpoolArea
131 
132 
134  public:
135  explicit SettingsTransaction(const std::string &fqrn)
136  : layout_revision_(0)
137  , in_enter_session_(false)
138  , hash_algorithm_(shash::kShake128)
140  , ttl_second_(240)
142  , is_volatile_(false)
143  , enforce_limits_(false)
144  // SyncParameters::kDefaultNestedKcatalogLimit
146  // SyncParameters::kDefaultRootKcatalogLimit
148  // SyncParameters::kDefaultFileMbyteLimit
149  , limit_file_size_mb_(1024)
150  , use_catalog_autobalance_(false)
151  // SyncParameters::kDefaultMaxWeight
152  , autobalance_max_weight_(100000)
153  // SyncParameters::kDefaultMinWeight
155  , print_changeset_(false)
156  , dry_run_(false)
158  , timeout_s_(0)
159  , spool_area_(fqrn)
160  {}
161 
162  void SetLayoutRevision(const unsigned revision);
163  void SetInEnterSession(const bool value);
164  void SetBaseHash(const shash::Any &hash);
165  void SetUnionFsType(const std::string &union_fs);
166  void SetHashAlgorithm(const std::string &algorithm);
167  void SetCompressionAlgorithm(const std::string &algorithm);
168  void SetEnforceLimits(bool value);
169  void SetLimitNestedCatalogKentries(unsigned value);
170  void SetLimitRootCatalogKentries(unsigned value);
171  void SetLimitFileSizeMb(unsigned value);
172  void SetUseCatalogAutobalance(bool value);
173  void SetAutobalanceMaxWeight(unsigned value);
174  void SetAutobalanceMinWeight(unsigned value);
175  void SetPrintChangeset(bool value);
176  void SetDryRun(bool value);
177  void SetTimeout(unsigned seconds);
178  void SetLeasePath(const std::string &path);
179  void SetTemplate(const std::string &from, const std::string &to);
180  void DetectUnionFsType();
181 
186  int GetTimeoutS() const;
187 
188  unsigned layout_revision() const { return layout_revision_(); }
189  bool in_enter_session() const { return in_enter_session_(); }
190  shash::Any base_hash() const { return base_hash_(); }
193  return compression_algorithm_();
194  }
195  uint32_t ttl_second() const { return ttl_second_(); }
197  bool is_volatile() const { return is_volatile_(); }
198  bool enforce_limits() const { return enforce_limits_(); }
199  unsigned limit_nested_catalog_kentries() const {
201  }
202  unsigned limit_root_catalog_kentries() const {
204  }
205  unsigned limit_file_size_mb() const { return limit_file_size_mb_(); }
207  unsigned autobalance_max_weight() const { return autobalance_max_weight_(); }
208  unsigned autobalance_min_weight() const { return autobalance_min_weight_(); }
209  bool print_changeset() const { return print_changeset_(); }
210  bool dry_run() const { return dry_run_(); }
211  std::string voms_authz() const { return voms_authz_(); }
212  UnionFsType union_fs() const { return union_fs_(); }
213  std::string lease_path() const { return lease_path_(); }
214  std::string template_from() const { return template_from_(); }
215  std::string template_to() const { return template_to_(); }
216 
217  const SettingsSpoolArea &spool_area() const { return spool_area_; }
219 
220  bool HasTemplate() const { return !template_to().empty(); }
221 
222  private:
223  bool ValidateUnionFs();
224 
269 
271 }; // class SettingsTransaction
272 
273 
274 class SettingsGc {
275 }; // class SettingsGc
276 
277 
279  public:
280  explicit SettingsStorage(const std::string &fqrn)
281  : fqrn_(fqrn)
282  , type_(upload::SpoolerDefinition::Local)
283  , tmp_dir_(std::string("/srv/cvmfs/") + fqrn + "/data/txn")
284  , endpoint_(std::string("/srv/cvmfs/") + fqrn)
285  { }
286 
287  std::string GetLocator() const;
288  void SetLocator(const std::string &locator);
289  void MakeLocal(const std::string &path);
290  void MakeS3(const std::string &s3_config, const std::string &tmp_dir);
291  void MakeGateway(const std::string &host, unsigned port,
292  const std::string &tmp_dir);
293 
295  std::string endpoint() const { return endpoint_(); }
296 
297  private:
302 }; // class SettingsStorage
303 
304 
306  public:
307  explicit SettingsKeychain(const std::string &fqrn)
308  : fqrn_(fqrn)
309  , keychain_dir_("/etc/cvmfs/keys")
310  , master_private_key_path_(keychain_dir_() + "/" + fqrn + ".masterkey")
311  , master_public_key_path_(keychain_dir_() + "/" + fqrn + ".pub")
312  , private_key_path_(keychain_dir_() + "/" + fqrn + ".key")
313  , certificate_path_(keychain_dir_() + "/" + fqrn + ".crt")
314  , gw_key_path_(keychain_dir_() + "/" + fqrn + ".gw")
315  {}
316 
317  void SetKeychainDir(const std::string &keychain_dir);
318 
319  bool HasDanglingMasterKeys() const;
320  bool HasMasterKeys() const;
321  bool HasDanglingRepositoryKeys() const;
322  bool HasRepositoryKeys() const;
323  bool HasGatewayKey() const;
324 
325  std::string keychain_dir() const { return keychain_dir_(); }
326  std::string master_private_key_path() const {
327  return master_private_key_path_();
328  }
329  std::string master_public_key_path() const {
330  return master_public_key_path_();
331  }
332  std::string private_key_path() const { return private_key_path_(); }
333  std::string certificate_path() const { return certificate_path_(); }
334  std::string gw_key_path() const { return gw_key_path_(); }
335 
336  private:
344 }; // class SettingsKeychain
345 
346 
347 class SettingsPublisher;
348 
353  public:
354  explicit SettingsRepository(const std::string &fqrn)
355  : fqrn_(fqrn)
356  , url_(std::string("http://localhost/cvmfs/") + fqrn_())
357  , proxy_("")
358  , tmp_dir_("/tmp")
359  , keychain_(fqrn)
360  {}
361  explicit SettingsRepository(const SettingsPublisher &settings_publisher);
362 
363  void SetUrl(const std::string &url);
364  void SetProxy(const std::string &proxy);
365  void SetTmpDir(const std::string &tmp_dir);
366  void SetCertBundle(const std::string &cert_bundle);
367 
368  std::string fqrn() const { return fqrn_(); }
369  std::string url() const { return url_(); }
370  std::string proxy() const { return proxy_(); }
371  std::string tmp_dir() const { return tmp_dir_(); }
372  std::string cert_bundle() const { return cert_bundle_(); }
373 
374  const SettingsKeychain &keychain() const { return keychain_; }
376 
377  private:
382  // Currently only used for testing, steered by X509_CERT_BUNDLE
383  // in /etc/cvmfs/server.local
385 
387 }; // class SettingsRepository
388 
389 
394  public:
395  static const unsigned kDefaultWhitelistValidity; // 30 days
396 
397  explicit SettingsPublisher(const std::string &fqrn)
398  : fqrn_(fqrn)
399  , url_(std::string("http://localhost/cvmfs/") + fqrn)
400  , proxy_("")
401  , owner_uid_(0)
402  , owner_gid_(0)
404  , is_silent_(false)
405  , is_managed_(false)
406  , storage_(fqrn_())
407  , transaction_(fqrn_())
408  , keychain_(fqrn_())
409  { }
410  explicit SettingsPublisher(const SettingsRepository &settings_repository);
411 
412  void SetUrl(const std::string &url);
413  void SetProxy(const std::string &proxy);
414  void SetOwner(const std::string &user_name);
415  void SetOwner(uid_t uid, gid_t gid);
416  void SetIsSilent(bool value);
417  void SetIsManaged(bool value);
418 
419  std::string GetReadOnlyXAttr(const std::string &attr);
420 
421  std::string fqrn() const { return fqrn_(); }
422  std::string url() const { return url_(); }
423  std::string proxy() const { return proxy_(); }
424  unsigned whitelist_validity_days() const {
425  return whitelist_validity_days_();
426  }
427  uid_t owner_uid() const { return owner_uid_(); }
428  uid_t owner_gid() const { return owner_gid_(); }
429  bool is_silent() const { return is_silent_(); }
430  bool is_managed() const { return is_managed_(); }
431 
432  const SettingsStorage &storage() const { return storage_; }
433  const SettingsTransaction &transaction() const { return transaction_; }
434  const SettingsKeychain &keychain() const { return keychain_; }
438 
439  private:
448 
452 }; // SettingsPublisher
453 
454 
459  public:
460  explicit SettingsReplica(const std::string &fqrn)
461  : fqrn_(fqrn)
462  , alias_(fqrn)
463  , url_(std::string("http://localhost/cvmfs/") + alias_())
464  {}
465 
466  private:
470 }; // class SettingsReplica
471 
472 
478  public:
480  : config_path_("/etc/cvmfs/repositories.d")
481  , options_mgr_(NULL)
482  {}
487  explicit SettingsBuilder(const std::string &c) : config_path_(c) {}
488 
496  SettingsRepository CreateSettingsRepository(const std::string &ident);
497 
510  const std::string &ident, bool needs_managed = false);
511 
513  bool IsManagedRepository() const { return options_mgr_ != NULL; }
514 
519  SettingsPublisher* settings_publisher);
520 
521  void SetConfigPath(const std::string &config_path) {
522  config_path_ = config_path;
523  }
524 
525  private:
530  std::string config_path_;
531 
537  // TODO(avalenzu): options_mgr_ should become a unique pointer.
538 
546  std::string GetSingleAlias();
547 
552  std::map<std::string, std::string> GetSessionEnvironment();
553 
558 }; // class SettingsBuilder
559 
560 } // namespace publish
561 
562 #endif // CVMFS_PUBLISH_SETTINGS_H_
unsigned autobalance_min_weight() const
Definition: settings.h:208
void SetUnionFsType(const std::string &union_fs)
Definition: settings.cc:122
SettingsKeychain * GetKeychain()
Definition: settings.h:375
SettingsSpoolArea spool_area_
Definition: settings.h:270
Setting< std::string > keychain_dir_
Definition: settings.h:338
Setting< unsigned > whitelist_validity_days_
Definition: settings.h:445
bool use_catalog_autobalance() const
Definition: settings.h:206
std::string endpoint() const
Definition: settings.h:295
std::string config_path_
Definition: settings.h:530
std::string readonly_mnt() const
Definition: settings.h:95
std::string checkout_marker() const
Definition: settings.h:110
bool HasGatewayKey() const
Definition: settings.cc:272
Setting< unsigned > timeout_s_
Definition: settings.h:261
const T & operator()() const
Definition: settings.h:40
shash::Algorithms hash_algorithm() const
Definition: settings.h:191
std::string voms_authz() const
Definition: settings.h:211
SettingsPublisher * CreateSettingsPublisher(const std::string &ident, bool needs_managed=false)
Definition: settings.cc:581
SettingsTransaction * GetTransaction()
Definition: settings.h:436
void SetUrl(const std::string &url)
Definition: settings.cc:291
void SetUnionMount(const std::string &path)
Definition: settings.cc:37
void MakeGateway(const std::string &host, unsigned port, const std::string &tmp_dir)
Definition: settings.cc:203
Setting< bool > is_managed_
Definition: settings.h:447
void SetTimeout(unsigned seconds)
Definition: settings.cc:154
SettingsKeychain * GetKeychain()
Definition: settings.h:437
unsigned limit_root_catalog_kentries() const
Definition: settings.h:202
uid_t owner_gid() const
Definition: settings.h:428
void SetKeychainDir(const std::string &keychain_dir)
Definition: settings.cc:235
Setting< gid_t > owner_gid_
Definition: settings.h:444
std::string keychain_dir() const
Definition: settings.h:325
void SetLimitNestedCatalogKentries(unsigned value)
Definition: settings.cc:90
EUnionMountRepairMode
Definition: settings.h:64
void SetAutobalanceMaxWeight(unsigned value)
Definition: settings.cc:106
std::string gw_key_path() const
Definition: settings.h:334
void SetIsSilent(bool value)
Definition: settings.cc:359
bool HasTemplate() const
Definition: settings.h:220
SettingsKeychain(const std::string &fqrn)
Definition: settings.h:307
Setting< UnionFsType > union_fs_
Definition: settings.h:257
unsigned layout_revision() const
Definition: settings.h:188
Setting< upload::SpoolerDefinition::DriverType > type_
Definition: settings.h:299
Setting< uint32_t > ttl_second_
Definition: settings.h:244
std::string private_key_path() const
Definition: settings.h:332
void SetTemplate(const std::string &from, const std::string &to)
Definition: settings.cc:168
Setting< bool > enforce_limits_
Definition: settings.h:247
unsigned autobalance_max_weight() const
Definition: settings.h:207
std::string GetSingleAlias()
Definition: settings.cc:402
Setting< std::string > union_mnt_
Definition: settings.h:125
std::string client_config() const
Definition: settings.h:105
std::string template_to() const
Definition: settings.h:215
SettingsRepository(const std::string &fqrn)
Definition: settings.h:354
void SetLayoutRevision(const unsigned revision)
Definition: settings.cc:65
EUnionMountRepairMode repair_mode() const
Definition: settings.h:120
std::string log_dir() const
Definition: settings.h:103
SettingsTransaction transaction_
Definition: settings.h:450
void SetConfigPath(const std::string &config_path)
Definition: settings.h:521
Setting< std::string > voms_authz_
Definition: settings.h:256
bool is_default_
Definition: settings.h:57
void SetLeasePath(const std::string &path)
Definition: settings.cc:164
Setting< std::string > tmp_dir_
Definition: settings.h:381
unsigned limit_nested_catalog_kentries() const
Definition: settings.h:199
std::string cert_bundle() const
Definition: settings.h:372
Setting< unsigned > layout_revision_
Definition: settings.h:228
bool is_volatile() const
Definition: settings.h:197
void SetAutobalanceMinWeight(unsigned value)
Definition: settings.cc:110
char algorithm
SettingsPublisher(const std::string &fqrn)
Definition: settings.h:397
OptionsManager * options_mgr_
Definition: settings.h:536
Setting< bool > is_silent_
Definition: settings.h:446
bool HasMasterKeys() const
Definition: settings.cc:253
void ApplyOptionsFromServerPath(const OptionsManager &options_mgr_, SettingsPublisher *settings_publisher)
Definition: settings.cc:523
Setting< shash::Any > base_hash_
Definition: settings.h:241
Algorithms
Definition: hash.h:40
bool is_silent() const
Definition: settings.h:429
std::string master_public_key_path() const
Definition: settings.h:329
Setting< unsigned > limit_root_catalog_kentries_
Definition: settings.h:249
SettingsBuilder(const std::string &c)
Definition: settings.h:487
std::string transaction_lock() const
Definition: settings.h:114
Algorithms
Definition: compression.h:44
std::string cache_dir() const
Definition: settings.h:108
bool HasRepositoryKeys() const
Definition: settings.cc:267
std::string proxy() const
Definition: settings.h:370
UnionFsType union_fs() const
Definition: settings.h:212
const SettingsKeychain & keychain() const
Definition: settings.h:434
void SetTmpDir(const std::string &tmp_dir)
Definition: settings.cc:302
bool IsManagedRepository() const
Definition: settings.h:513
Setting< bool > in_enter_session_
Definition: settings.h:233
void SetDryRun(bool value)
Definition: settings.cc:118
std::string scratch_wastebin() const
Definition: settings.h:102
Setting< std::string > template_from_
Definition: settings.h:267
Setting< uid_t > owner_uid_
Definition: settings.h:443
std::string union_mnt() const
Definition: settings.h:99
Setting< bool > use_catalog_autobalance_
Definition: settings.h:251
bool print_changeset() const
Definition: settings.h:209
void SetProxy(const std::string &proxy)
Definition: settings.cc:342
std::string GetReadOnlyXAttr(const std::string &attr)
Definition: settings.cc:477
std::string publishing_lock() const
Definition: settings.h:117
std::string lease_path() const
Definition: settings.h:213
void SetUrl(const std::string &url)
Definition: settings.cc:336
std::string master_private_key_path() const
Definition: settings.h:326
std::string ovl_work_dir() const
Definition: settings.h:109
SettingsRepository CreateSettingsRepository(const std::string &ident)
Definition: settings.cc:425
Setting< unsigned > autobalance_max_weight_
Definition: settings.h:252
const SettingsSpoolArea & spool_area() const
Definition: settings.h:217
void SetLimitRootCatalogKentries(unsigned value)
Definition: settings.cc:94
Setting< std::string > url_
Definition: settings.h:469
void SetIsManaged(bool value)
Definition: settings.cc:363
Setting & operator=(const T &v)
Definition: settings.h:34
Setting< std::string > workspace_
Definition: settings.h:123
const SettingsTransaction & transaction() const
Definition: settings.h:433
Setting< std::string > fqrn_
Definition: settings.h:440
SettingsPublisher * CreateSettingsPublisherFromSession()
Definition: settings.cc:487
uint32_t ttl_second() const
Definition: settings.h:195
Setting< std::string > alias_
Definition: settings.h:468
SettingsKeychain keychain_
Definition: settings.h:451
bool is_default() const
Definition: settings.h:51
std::string proxy() const
Definition: settings.h:423
void SetHashAlgorithm(const std::string &algorithm)
Definition: settings.cc:77
std::string workspace() const
Definition: settings.h:93
void SetLocator(const std::string &locator)
Definition: settings.cc:213
SettingsTransaction(const std::string &fqrn)
Definition: settings.h:135
Setting< std::string > fqrn_
Definition: settings.h:298
void SetCertBundle(const std::string &cert_bundle)
Definition: settings.cc:307
zlib::Algorithms compression_algorithm() const
Definition: settings.h:192
std::string certificate_path() const
Definition: settings.h:333
Setting< bool > print_changeset_
Definition: settings.h:254
bool is_managed() const
Definition: settings.h:430
SettingsStorage * GetStorage()
Definition: settings.h:435
const SettingsStorage & storage() const
Definition: settings.h:432
Setting< zlib::Algorithms > compression_algorithm_
Definition: settings.h:243
Setting< std::string > fqrn_
Definition: settings.h:337
Setting< std::string > cert_bundle_
Definition: settings.h:384
OptionsManager * options_mgr() const
Definition: settings.h:512
void SetLimitFileSizeMb(unsigned value)
Definition: settings.cc:98
Setting< std::string > url_
Definition: settings.h:441
Setting< std::string > template_to_
Definition: settings.h:268
void SetUseCatalogAutobalance(bool value)
Definition: settings.cc:102
Setting< EUnionMountRepairMode > repair_mode_
Definition: settings.h:129
Setting< unsigned > autobalance_min_weight_
Definition: settings.h:253
void SetCompressionAlgorithm(const std::string &algorithm)
Definition: settings.cc:81
bool enforce_limits() const
Definition: settings.h:198
Setting< std::string > private_key_path_
Definition: settings.h:341
void SetSpoolArea(const std::string &path)
Definition: settings.cc:32
Setting< shash::Algorithms > hash_algorithm_
Definition: settings.h:242
unsigned limit_file_size_mb() const
Definition: settings.h:205
void SetEnforceLimits(bool value)
Definition: settings.cc:86
Setting< std::string > tmp_dir_
Definition: settings.h:300
void SetProxy(const std::string &proxy)
Definition: settings.cc:297
Setting< std::string > master_private_key_path_
Definition: settings.h:339
shash::Any base_hash() const
Definition: settings.h:190
const SettingsKeychain & keychain() const
Definition: settings.h:374
static const unsigned kDefaultWhitelistValidity
Definition: settings.h:395
std::string tmp_dir() const
Definition: settings.h:94
Setting< std::string > proxy_
Definition: settings.h:442
void SetBaseHash(const shash::Any &hash)
Definition: settings.cc:73
Setting< std::string > endpoint_
Definition: settings.h:301
void SetPrintChangeset(bool value)
Definition: settings.cc:114
std::string readonly_talk_socket() const
Definition: settings.h:96
SettingsStorage(const std::string &fqrn)
Definition: settings.h:280
std::string scratch_dir() const
Definition: settings.h:101
std::string gw_session_token() const
Definition: settings.h:111
unsigned whitelist_validity_days() const
Definition: settings.h:424
std::map< std::string, std::string > GetSessionEnvironment()
Definition: settings.cc:376
SettingsSpoolArea * GetSpoolArea()
Definition: settings.h:218
bool HasDanglingRepositoryKeys() const
Definition: settings.cc:259
std::string fqrn() const
Definition: settings.h:421
std::string fqrn() const
Definition: settings.h:368
SettingsStorage storage_
Definition: settings.h:449
Setting< unsigned > limit_file_size_mb_
Definition: settings.h:250
void MakeLocal(const std::string &path)
Definition: settings.cc:197
Setting< std::string > master_public_key_path_
Definition: settings.h:340
upload::SpoolerDefinition::DriverType type() const
Definition: settings.h:294
std::string scratch_base() const
Definition: settings.h:100
void SetOwner(const std::string &user_name)
Definition: settings.cc:347
void SetRepairMode(const EUnionMountRepairMode val)
Definition: settings.cc:41
std::string template_from() const
Definition: settings.h:214
uid_t owner_uid() const
Definition: settings.h:427
bool in_enter_session() const
Definition: settings.h:189
Setting< unsigned > limit_nested_catalog_kentries_
Definition: settings.h:248
Setting< std::string > fqrn_
Definition: settings.h:467
Setting< bool > is_volatile_
Definition: settings.h:246
SettingsKeychain keychain_
Definition: settings.h:386
Setting< bool > dry_run_
Definition: settings.h:255
Setting< std::string > certificate_path_
Definition: settings.h:342
std::string url() const
Definition: settings.h:369
bool SetIfDefault(const T &v)
Definition: settings.h:44
Setting< std::string > proxy_
Definition: settings.h:380
std::string client_lconfig() const
Definition: settings.h:106
void MakeS3(const std::string &s3_config, const std::string &tmp_dir)
Definition: settings.cc:188
std::string url() const
Definition: settings.h:422
Setting< std::string > tmp_dir_
Definition: settings.h:124
std::string GetLocator() const
Definition: settings.cc:182
Setting< std::string > url_
Definition: settings.h:379
void SetInEnterSession(const bool value)
Definition: settings.cc:69
SettingsReplica(const std::string &fqrn)
Definition: settings.h:460
Setting< std::string > gw_key_path_
Definition: settings.h:343
Setting(const T &v)
Definition: settings.h:32
Setting< std::string > lease_path_
Definition: settings.h:262
std::string tmp_dir() const
Definition: settings.h:371
SettingsSpoolArea(const std::string &fqrn)
Definition: settings.h:77
Setting< bool > is_garbage_collectable_
Definition: settings.h:245
Setting< std::string > fqrn_
Definition: settings.h:378
bool HasDanglingMasterKeys() const
Definition: settings.cc:245
std::string client_log() const
Definition: settings.h:107
bool is_garbage_collectable() const
Definition: settings.h:196