GCC Code Coverage Report
Directory: cvmfs/ Exec Total Coverage
File: cvmfs/swissknife_lease_curl.h Lines: 1 1 100.0 %
Date: 2019-02-03 02:48:13 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_CURL_H_
6
#define CVMFS_SWISSKNIFE_LEASE_CURL_H_
7
8
#include <string>
9
10
#include "curl/curl.h"
11
12
22
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_