fileapi: Add protocol v1 support for client-specific query files

Add support for client-owned stateless query files.  These allow clients
to *own* requests for major object versions and get all those recognized
by CMake.

Issue: #18398
This commit is contained in:
Brad King
2018-09-13 08:48:29 -04:00
parent eb2ec41a04
commit 8fce59848b
20 changed files with 271 additions and 4 deletions
+4
View File
@@ -77,6 +77,9 @@ private:
/** The content of the top-level query directory. */
Query TopQuery;
/** The content of each "client-$client" query directory. */
std::map<std::string, Query> ClientQueries;
/** Reply index object generated for object kind/version.
This populates the "objects" field of the reply index. */
std::map<Object, Json::Value> ReplyIndexObjects;
@@ -91,6 +94,7 @@ private:
static bool ReadQuery(std::string const& query,
std::vector<Object>& objects);
void ReadClient(std::string const& client);
Json::Value BuildReplyIndex();
Json::Value BuildCMake();