diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-04-27 20:34:44 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-05-17 19:04:57 +0300 |
commit | 6679ad0de1fddc9f78087aaa67432f3d48ce08b4 (patch) | |
tree | 9b7f0a3f4d0d34285870c6d16b6d7db6f8909ecf /libbbot/manifest.hxx | |
parent | 29aed111bc9833010993ddc36393a69366936635 (diff) |
Add support for *-upload-url task response manifest values
Diffstat (limited to 'libbbot/manifest.hxx')
-rw-r--r-- | libbbot/manifest.hxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libbbot/manifest.hxx b/libbbot/manifest.hxx index d51d95b..5807aed 100644 --- a/libbbot/manifest.hxx +++ b/libbbot/manifest.hxx @@ -260,6 +260,16 @@ namespace bbot validate_regex (const std::string&); }; + class upload_url + { + public: + std::string url; + std::string type; + + upload_url (std::string u, std::string t) + : url (std::move (u)), type (std::move (t)) {} + }; + class LIBBBOT_EXPORT task_response_manifest { public: @@ -267,10 +277,12 @@ namespace bbot // std::string session; - // Challenge, result url and task are absent if session is empty. + // Challenge, result url, and task are absent and upload urls list is + // empty if session is empty. // butl::optional<std::string> challenge; butl::optional<std::string> result_url; + std::vector<upload_url> upload_urls; // <type>-upload-url: <url> butl::optional<std::string> agent_checksum; @@ -279,11 +291,13 @@ namespace bbot task_response_manifest (std::string s, butl::optional<std::string> c, butl::optional<std::string> u, + std::vector<upload_url> uus, butl::optional<std::string> ac, butl::optional<task_manifest> t) : session (std::move (s)), challenge (std::move (c)), result_url (std::move (u)), + upload_urls (std::move (uus)), agent_checksum (std::move (ac)), task (std::move (t)) {} |