CernVM-FS  2.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife_lease.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_SWISSKNIFE_LEASE_H_
6 #define CVMFS_SWISSKNIFE_LEASE_H_
7 
8 #include <string>
9 
10 #include "swissknife.h"
11 
12 namespace swissknife {
13 
14 class CommandLease : public Command {
15  public:
16  virtual ~CommandLease();
17 
18  virtual std::string GetName() const { return "lease"; }
19  virtual std::string GetDescription() const {
20  return "Acquire a lease on a repository sub-path";
21  }
22 
23  virtual ParameterList GetParams() const;
24 
25  virtual int Main(const ArgumentList &args);
26 
27  struct Parameters {
29  : repo_service_url(""), action(""), key_file(""), lease_path("") {}
30 
31  std::string repo_service_url;
32  std::string action;
33  std::string key_file;
34  std::string lease_path;
35  };
36 };
37 
38 } // namespace swissknife
39 
40 #endif // CVMFS_SWISSKNIFE_LEASE_H_
virtual int Main(const ArgumentList &args)
std::vector< Parameter > ParameterList
Definition: swissknife.h:71
virtual std::string GetDescription() const
virtual ParameterList GetParams() const
std::map< char, SharedPtr< std::string > > ArgumentList
Definition: swissknife.h:72
virtual std::string GetName() const