CernVM-FS  2.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife_sign.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_SWISSKNIFE_SIGN_H_
6 #define CVMFS_SWISSKNIFE_SIGN_H_
7 
8 #include <string>
9 
10 #include "swissknife.h"
11 
12 namespace upload {
13 struct SpoolerResult;
14 }
15 
16 namespace swissknife {
17 
18 class CommandSign : public Command {
19  public:
21  virtual std::string GetName() const { return "sign"; }
22  virtual std::string GetDescription() const {
23  return "Adds a signature to the repository manifest.";
24  }
25  virtual ParameterList GetParams() const {
26  ParameterList r;
27  r.push_back(Parameter::Mandatory('m', "manifest file"));
28  r.push_back(Parameter::Mandatory('u', "repository URL"));
29  r.push_back(Parameter::Mandatory('r', "spooler definition"));
30  r.push_back(Parameter::Mandatory('t', "directory for temporary files"));
31  r.push_back(Parameter::Optional('R', "path to reflog.chksum file"));
32  r.push_back(Parameter::Optional('c', "x509 certificate"));
33  r.push_back(Parameter::Optional('k', "private key of the certificate"));
34  r.push_back(Parameter::Optional('s', "password for the private key"));
35  r.push_back(Parameter::Optional('n', "repository name"));
36  r.push_back(Parameter::Optional('M', "repository meta info file"));
37  r.push_back(Parameter::Optional('@', "proxy URL"));
38  r.push_back(Parameter::Switch('b',
39  "generate symlinks for VOMS-secured "
40  "repo backends"));
41  r.push_back(Parameter::Switch('g', "repository is garbage collectible"));
42  r.push_back(Parameter::Switch('A', "repository has bootstrap shortcuts"));
43  r.push_back(Parameter::Switch('e',
44  "return early, don't upload signed "
45  "manifest"));
46  return r;
47  }
48  int Main(const ArgumentList &args);
49 };
50 
51 } // namespace swissknife
52 
53 #endif // CVMFS_SWISSKNIFE_SIGN_H_
static Parameter Optional(const char key, const std::string &desc)
Definition: swissknife.h:41
static Parameter Switch(const char key, const std::string &desc)
Definition: swissknife.h:44
std::vector< Parameter > ParameterList
Definition: swissknife.h:71
int Main(const ArgumentList &args)
virtual std::string GetName() const
virtual ParameterList GetParams() const
static Parameter Mandatory(const char key, const std::string &desc)
Definition: swissknife.h:38
std::map< char, SharedPtr< std::string > > ArgumentList
Definition: swissknife.h:72
virtual std::string GetDescription() const