diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-12-05 12:00:08 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-12-07 10:00:12 +0100 |
commit | c8c6f73674c9b1d6a35a8ef6d0bec9b5d216e443 (patch) | |
tree | 16eb8478be1acb294083a364af5d92bb4d7af23e /src/buildtool/serve_api/remote/serve_api.hpp | |
parent | 0cdd6595bae75e4c8a223bb9fe497ed1b0d42c31 (diff) | |
download | justbuild-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.hpp | 5 |
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, |