Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: cipd/client/cipd/internal/messages/messages.proto

Issue 2501023002: Add FileEntry cache to TagCache for selfupdate. (Closed)
Patch Set: fix comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cipd/client/cipd/common/common.go ('k') | cipd/client/cipd/internal/messages/messages.pb.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cipd/client/cipd/internal/messages/messages.proto
diff --git a/cipd/client/cipd/internal/messages/messages.proto b/cipd/client/cipd/internal/messages/messages.proto
index 27eb97c4efdfe83ff5e1643f6d120057fed70c9e..5f8b6785009470f9c1bfed48998a605cd74993fd 100644
--- a/cipd/client/cipd/internal/messages/messages.proto
+++ b/cipd/client/cipd/internal/messages/messages.proto
@@ -15,8 +15,12 @@ message BlobWithSHA1 {
bytes sha1 = 2;
}
-// TagCache stores a mapping (package name, tag) -> instance ID to speed up
-// subsequence ResolveVersion calls when tags are used.
+// TagCache stores a mapping (package name, tag) -> instance ID to
+// speed up subsequent ResolveVersion calls when tags are used.
+//
+// It also contains a (instance_id, file_name) -> hash mapping which is used for
+// client self-update purposes. file_name is case-senstive and must always use
+// POSIX-style slashes.
message TagCache {
message Entry {
string package = 1;
@@ -26,6 +30,14 @@ message TagCache {
// Capped list of entries, most recently resolved is last.
repeated Entry entries = 1;
+
+ message FileEntry {
+ string package = 1;
+ string instance_id = 2;
+ string file_name = 3;
+ string hash = 4;
+ }
+ repeated FileEntry file_entries = 2;
}
// InstanceCache stores a list of instances in cache
« no previous file with comments | « cipd/client/cipd/common/common.go ('k') | cipd/client/cipd/internal/messages/messages.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698