CernVM-FS  2.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
signing_tool.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_SIGNING_TOOL_H_
6 #define CVMFS_SIGNING_TOOL_H_
7 
8 #include <string>
9 #include <vector>
10 
11 #include "hash.h"
12 #include "server_tool.h"
13 #include "util_concurrency.h"
14 
15 class ServerTool;
16 
17 namespace upload {
18 struct SpoolerResult;
19 }
20 
21 class SigningTool {
22  public:
23  enum Result {
29  };
30 
31  explicit SigningTool(ServerTool *server_tool);
32  virtual ~SigningTool();
33 
34  Result Run(const std::string &manifest_path, const std::string &repo_url,
35  const std::string &spooler_definition, const std::string &temp_dir,
36  const std::string &certificate = "",
37  const std::string &priv_key = "",
38  const std::string &repo_name = "", const std::string &pwd = "",
39  const std::string &meta_info = "",
40  const std::string &reflog_chksum_path = "",
41  const std::string &proxy = "",
42  const bool garbage_collectable = false,
43  const bool bootstrap_shortcuts = false,
44  const bool return_early = false,
45  const std::vector<shash::Any> reflog_catalogs =
46  std::vector<shash::Any>());
47 
48  protected:
51 
52  private:
56 };
57 
58 #endif // CVMFS_SIGNING_TOOL_H_
Future< shash::Any > metainfo_hash_
Definition: signing_tool.h:55
Result Run(const std::string &manifest_path, const std::string &repo_url, const std::string &spooler_definition, const std::string &temp_dir, const std::string &certificate="", const std::string &priv_key="", const std::string &repo_name="", const std::string &pwd="", const std::string &meta_info="", const std::string &reflog_chksum_path="", const std::string &proxy="", const bool garbage_collectable=false, const bool bootstrap_shortcuts=false, const bool return_early=false, const std::vector< shash::Any > reflog_catalogs=std::vector< shash::Any >())
Definition: signing_tool.cc:27
void CertificateUploadCallback(const upload::SpoolerResult &result)
Future< shash::Any > certificate_hash_
Definition: signing_tool.h:54
ServerTool * server_tool_
Definition: signing_tool.h:53
virtual ~SigningTool()
Definition: signing_tool.cc:25
std::string meta_info() const
Definition: repository.h:126
void MetainfoUploadCallback(const upload::SpoolerResult &result)
SigningTool(ServerTool *server_tool)
Definition: signing_tool.cc:23