summaryrefslogtreecommitdiff
path: root/src/buildtool/serve_api/remote/serve_api.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-05 12:00:08 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-07 10:00:12 +0100
commitc8c6f73674c9b1d6a35a8ef6d0bec9b5d216e443 (patch)
tree16eb8478be1acb294083a364af5d92bb4d7af23e /src/buildtool/serve_api/remote/serve_api.hpp
parent0cdd6595bae75e4c8a223bb9fe497ed1b0d42c31 (diff)
downloadjustbuild-c8c6f73674c9b1d6a35a8ef6d0bec9b5d216e443.tar.gz
just serve: Implement client-side ServeTree and extend serve API
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r--src/buildtool/serve_api/remote/serve_api.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp
index fce7611d..b4c03ba5 100644
--- a/src/buildtool/serve_api/remote/serve_api.hpp
+++ b/src/buildtool/serve_api/remote/serve_api.hpp
@@ -61,6 +61,11 @@ class ServeApi final {
return Instance().stc_->ServeContent(content);
}
+ [[nodiscard]] static auto TreeInRemoteCAS(std::string const& tree_id)
+ -> bool {
+ return Instance().stc_->ServeTree(tree_id);
+ }
+
[[nodiscard]] static auto ServeTargetVariables(
std::string const& target_root_id,
std::string const& target_file,