diff options
Diffstat (limited to 'src/buildtool/serve_api/remote/serve_api.hpp')
-rw-r--r-- | src/buildtool/serve_api/remote/serve_api.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildtool/serve_api/remote/serve_api.hpp b/src/buildtool/serve_api/remote/serve_api.hpp index 50fdc4e3..965cf8df 100644 --- a/src/buildtool/serve_api/remote/serve_api.hpp +++ b/src/buildtool/serve_api/remote/serve_api.hpp @@ -58,6 +58,13 @@ class ServeApi final { content, archive_type, subdir, resolve_symlinks, sync_tree); } + [[nodiscard]] static auto RetrieveTreeFromDistdir( + std::shared_ptr<std::unordered_map<std::string, std::string>> const& + distfiles, + bool sync_tree = false) -> std::optional<std::string> { + return Instance().stc_->ServeDistdirTree(distfiles, sync_tree); + } + [[nodiscard]] static auto ContentInRemoteCAS(std::string const& content) -> bool { return Instance().stc_->ServeContent(content); |