| Directory: | cvmfs/ |
|---|---|
| File: | cvmfs/swissknife_lease_curl.h |
| Date: | 2025-11-09 02:35:23 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 1 | 1 | 100.0% |
| Branches: | 1 | 2 | 50.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 | class CurlBuffer { | ||
| 13 | public: | ||
| 14 | std::string data; | ||
| 15 |
1/2✓ Branch 2 taken 539 times.
✗ Branch 3 not taken.
|
539 | CurlBuffer() : data("") { } |
| 16 | }; | ||
| 17 | |||
| 18 | bool MakeAcquireRequest(const std::string &key_id, const std::string &secret, | ||
| 19 | const std::string &repo_path, | ||
| 20 | const std::string &repo_service_url, CurlBuffer *buffer, | ||
| 21 | const std::string &metadata = std::string()); | ||
| 22 | |||
| 23 | bool MakeEndRequest(const std::string &method, const std::string &key_id, | ||
| 24 | const std::string &secret, const std::string &session_token, | ||
| 25 | const std::string &repo_service_url, | ||
| 26 | const std::string &request_payload, CurlBuffer *reply, | ||
| 27 | bool expect_final_revision = false); | ||
| 28 | |||
| 29 | #endif // CVMFS_SWISSKNIFE_LEASE_CURL_H_ | ||
| 30 |