CernVM-FS  2.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swissknife_lease_curl.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_SWISSKNIFE_LEASE_CURL_H_
6 #define CVMFS_SWISSKNIFE_LEASE_CURL_H_
7 
8 #include <string>
9 
10 #include "curl/curl.h"
11 
12 struct CurlBuffer {
13  std::string data;
14 };
15 
16 bool MakeAcquireRequest(const std::string& key_id, const std::string& secret,
17  const std::string& repo_path,
18  const std::string& repo_service_url,
19  CurlBuffer* buffer);
20 
21 bool MakeEndRequest(const std::string& method, const std::string& key_id,
22  const std::string& secret, const std::string& session_token,
23  const std::string& repo_service_url,
24  const std::string& request_payload, CurlBuffer* reply);
25 
26 #endif // CVMFS_SWISSKNIFE_LEASE_CURL_H_
bool MakeEndRequest(const std::string &method, const std::string &key_id, const std::string &secret, const std::string &session_token, const std::string &repo_service_url, const std::string &request_payload, CurlBuffer *reply)
std::string data
static void MakeAcquireRequest(const gateway::GatewayKey &key, const std::string &repo_path, const std::string &repo_service_url, int llvl, CurlBuffer *buffer)