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-11-20 14:16:37 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-11-21 10:21:29 +0100
commit37968f38e8dc07a27941c52204692c6f3254c22a (patch)
tree984c0d9d6ca417dc74d6e651aad0ea59505364a3 /src/buildtool/serve_api/remote/serve_api.hpp
parent5fee8034265676b903618d19a7d7d65bb8d4b023 (diff)
downloadjustbuild-37968f38e8dc07a27941c52204692c6f3254c22a.tar.gz
just serve: Implement client-side ServeContent 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 48ba4098..16b998b4 100644
--- a/src/buildtool/serve_api/remote/serve_api.hpp
+++ b/src/buildtool/serve_api/remote/serve_api.hpp
@@ -56,6 +56,11 @@ class ServeApi final {
content, archive_type, subdir, resolve_symlinks, sync_tree);
}
+ [[nodiscard]] static auto ContentInRemoteCAS(std::string const& content)
+ -> bool {
+ return Instance().stc_->ServeContent(content);
+ }
+
[[nodiscard]] static auto ServeTargetVariables(
std::string const& target_root_id,
std::string const& target_file,