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"
15 bool LooksValid()
const override;
16 OSTreeRef GetRef(
const std::string& refname)
const override;
17 const boost::filesystem::path root()
const override {
return root_.Path(); }
20 bool FetchObject(
const boost::filesystem::path& path)
const override;
21 static size_t curl_handle_write(
void* buffer,
size_t size,
size_t nmemb,
void* userp);
28 #endif // SOTA_CLIENT_TOOLS_OSTREE_HTTP_REPO_H_