GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/swissknife_lease.h
Date: 2024-04-28 02:33:07
Exec Total Coverage
Lines: 0 5 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /**
2 * This file is part of the CernVM File System.
3 */
4
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 {
28 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_
41