1 #ifndef SOTA_CLIENT_TOOLS_OSTREE_REF_H_
2 #define SOTA_CLIENT_TOOLS_OSTREE_REF_H_
7 #include <boost/filesystem.hpp>
9 #include "ostree_hash.h"
10 #include "ostree_repo.h"
11 #include "treehub_server.h"
19 void PushRef(
const TreehubServer& push_target, CURL* curl_handle)
const;
22 std::string GetName()
const {
return ref_name_; };
27 std::string Url()
const;
30 std::string ref_content_;
31 const std::string ref_name_;
32 std::stringstream http_response_;
34 static size_t curl_handle_write(
void* buffer,
size_t size,
size_t nmemb,
void* userp);
38 #endif // SOTA_CLIENT_TOOLS_OSTREE_REF_H_