1 #ifndef SOTA_CLIENT_TOOLS_OSTREE_HTTP_REPO_H_
2 #define SOTA_CLIENT_TOOLS_OSTREE_HTTP_REPO_H_
4 #include <boost/filesystem.hpp>
6 #include "ostree_ref.h"
7 #include "ostree_repo.h"
8 #include "treehub_server.h"
13 : server_(server), root_(root_in) {
15 root_ = root_tmp_.Path();
20 bool LooksValid()
const override;
21 OSTreeRef GetRef(
const std::string& refname)
const override;
22 const boost::filesystem::path root()
const override {
return root_; }
25 bool FetchObject(
const boost::filesystem::path& path)
const override;
26 static size_t curl_handle_write(
void* buffer,
size_t size,
size_t nmemb,
void* userp);
29 boost::filesystem::path root_;
34 #endif // SOTA_CLIENT_TOOLS_OSTREE_HTTP_REPO_H_