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

Unified Diff: go/src/infra/tools/cipd/internal/messages/messages.proto

Issue 1381583007: cipd: Implement local cache for ResolveVersion(...) call with tags. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@cipd-init
Patch Set: rebase Created 5 years, 2 months 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
Index: go/src/infra/tools/cipd/internal/messages/messages.proto
diff --git a/go/src/infra/tools/cipd/internal/messages/messages.proto b/go/src/infra/tools/cipd/internal/messages/messages.proto
new file mode 100644
index 0000000000000000000000000000000000000000..eac3a13d8355cac6d383526bb6bd652483dfd143
--- /dev/null
+++ b/go/src/infra/tools/cipd/internal/messages/messages.proto
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto2";
+
+package messages;
+
+// BlobWithSHA1 is a wrapper around a binary blob with SHA1 hash to verify
+// its integrity.
+message BlobWithSHA1 {
+ optional bytes blob = 1;
+ optional bytes sha1 = 2;
+}
+
+// TagCache stores a mapping (package name, tag) -> instance ID to speed up
+// subsequence ResolveVersion calls when tags are used.
+message TagCache {
+ message Entry {
+ optional string package = 1;
+ optional string tag = 2;
+ optional string instance_id = 3;
+ }
+
+ // Capped list of entries, most recently resolved is last.
+ repeated Entry entries = 1;
+}

Powered by Google App Engine
This is Rietveld 408576698