1 #ifndef SOTA_CLIENT_TOOLS_OSTREE_DIR_REPO_H_ 2 #define SOTA_CLIENT_TOOLS_OSTREE_DIR_REPO_H_ 4 #include <boost/filesystem.hpp> 6 #include "ostree_ref.h" 7 #include "ostree_repo.h" 11 explicit OSTreeDirRepo(boost::filesystem::path root_path) : root_(std::move(root_path)) {}
14 bool LooksValid()
const override;
15 OSTreeRef GetRef(
const std::string& refname)
const override;
16 boost::filesystem::path root()
const override {
return root_; }
19 bool FetchObject(
const boost::filesystem::path& path)
const override;
21 const boost::filesystem::path root_;
24 #endif // SOTA_CLIENT_TOOLS_OSTREE_DIR_REPO_H_
A source repository to read OSTree objects from.