From 37968f38e8dc07a27941c52204692c6f3254c22a Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 20 Nov 2023 14:16:37 +0100 Subject: just serve: Implement client-side ServeContent and extend serve API --- src/buildtool/serve_api/remote/serve_api.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/buildtool/serve_api/remote/serve_api.hpp') 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, -- cgit v1.2.3