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

Unified Diff: client/cipd/internal/messages/messages.pb.go

Issue 1870263002: cipd: instance cache (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: restore check, improve comment Created 4 years, 8 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
« no previous file with comments | « client/cipd/internal/messages/messages.proto ('k') | client/cmd/cipd/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cipd/internal/messages/messages.pb.go
diff --git a/client/cipd/internal/messages/messages.pb.go b/client/cipd/internal/messages/messages.pb.go
index 3d29389dd522756b49a51081add29f0050b89451..43178a5b4e47039fed3871ac3c9b632941f4aeb0 100644
--- a/client/cipd/internal/messages/messages.pb.go
+++ b/client/cipd/internal/messages/messages.pb.go
@@ -11,12 +11,14 @@ It is generated from these files:
It has these top-level messages:
BlobWithSHA1
TagCache
+ InstanceCache
*/
package messages
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
+import google_protobuf "github.com/luci/luci-go/common/proto/google"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@@ -69,25 +71,83 @@ func (m *TagCache_Entry) String() string { return proto.CompactTextSt
func (*TagCache_Entry) ProtoMessage() {}
func (*TagCache_Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
+// InstanceCache stores a list of instances in cache
+// and their last access time.
+type InstanceCache struct {
+ // Entries is a map of {instance id -> information about instance}.
+ Entries map[string]*InstanceCache_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
+ // LastSynced is timestamp when we synchronized Entires with actual
+ // instance files.
+ LastSynced *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=last_synced,json=lastSynced" json:"last_synced,omitempty"`
+}
+
+func (m *InstanceCache) Reset() { *m = InstanceCache{} }
+func (m *InstanceCache) String() string { return proto.CompactTextString(m) }
+func (*InstanceCache) ProtoMessage() {}
+func (*InstanceCache) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
+
+func (m *InstanceCache) GetEntries() map[string]*InstanceCache_Entry {
+ if m != nil {
+ return m.Entries
+ }
+ return nil
+}
+
+func (m *InstanceCache) GetLastSynced() *google_protobuf.Timestamp {
+ if m != nil {
+ return m.LastSynced
+ }
+ return nil
+}
+
+// Entry stores info about an instance.
+type InstanceCache_Entry struct {
+ // LastAccess is last time this instance was retrieved from or put to the
+ // cache.
+ LastAccess *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=last_access,json=lastAccess" json:"last_access,omitempty"`
+}
+
+func (m *InstanceCache_Entry) Reset() { *m = InstanceCache_Entry{} }
+func (m *InstanceCache_Entry) String() string { return proto.CompactTextString(m) }
+func (*InstanceCache_Entry) ProtoMessage() {}
+func (*InstanceCache_Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
+
+func (m *InstanceCache_Entry) GetLastAccess() *google_protobuf.Timestamp {
+ if m != nil {
+ return m.LastAccess
+ }
+ return nil
+}
+
func init() {
proto.RegisterType((*BlobWithSHA1)(nil), "messages.BlobWithSHA1")
proto.RegisterType((*TagCache)(nil), "messages.TagCache")
proto.RegisterType((*TagCache_Entry)(nil), "messages.TagCache.Entry")
+ proto.RegisterType((*InstanceCache)(nil), "messages.InstanceCache")
+ proto.RegisterType((*InstanceCache_Entry)(nil), "messages.InstanceCache.Entry")
}
var fileDescriptor0 = []byte{
- // 195 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x4d, 0x2d, 0x2e,
- 0x4e, 0x4c, 0x4f, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0x95, 0xcc,
- 0xb8, 0x78, 0x9c, 0x72, 0xf2, 0x93, 0xc2, 0x33, 0x4b, 0x32, 0x82, 0x3d, 0x1c, 0x0d, 0x85, 0x84,
- 0xb8, 0x58, 0x92, 0x80, 0x7c, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x9e, 0x20, 0x30, 0x1b, 0x24, 0x56,
- 0x9c, 0x91, 0x68, 0x28, 0xc1, 0x04, 0x11, 0x03, 0xb1, 0x95, 0xa6, 0x30, 0x72, 0x71, 0x84, 0x24,
- 0xa6, 0x3b, 0x27, 0x26, 0x67, 0xa4, 0x0a, 0x19, 0x71, 0xb1, 0xa7, 0xe6, 0x95, 0x14, 0x65, 0xa6,
- 0x16, 0x03, 0xf5, 0x31, 0x6b, 0x70, 0x1b, 0x49, 0xe8, 0xc1, 0x2d, 0x84, 0x29, 0xd2, 0x73, 0x05,
- 0xaa, 0xa8, 0x0c, 0x82, 0x29, 0x94, 0x0a, 0xe1, 0x62, 0x05, 0x8b, 0x08, 0x49, 0x70, 0xb1, 0x17,
- 0x24, 0x26, 0x67, 0x03, 0x15, 0x83, 0x2d, 0xe5, 0x0c, 0x82, 0x71, 0x85, 0x04, 0xb8, 0x98, 0x4b,
- 0x12, 0xd3, 0xc1, 0xd6, 0x72, 0x06, 0x81, 0x98, 0x42, 0xf2, 0x5c, 0xdc, 0x99, 0x79, 0xc5, 0x25,
- 0x89, 0x79, 0xc9, 0xa9, 0xf1, 0x99, 0x29, 0x12, 0xcc, 0x60, 0x19, 0x2e, 0x98, 0x90, 0x67, 0x4a,
- 0x12, 0x1b, 0xd8, 0x7f, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xce, 0x37, 0x03, 0xf1,
- 0x00, 0x00, 0x00,
+ // 329 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0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c2, 0x7a, 0xe9, 0x90, 0x98, 0x16, 0x9d, 0x40,
+ 0x57, 0xd0, 0x44, 0xaf, 0x1d, 0x12, 0x55, 0xa2, 0x31, 0xd8, 0x59, 0x21, 0xed, 0x17, 0x11, 0x5b,
+ 0x67, 0xb1, 0xd3, 0xd5, 0x2f, 0x60, 0xa4, 0x65, 0xec, 0xbd, 0x77, 0xe0, 0x68, 0xd9, 0xb6, 0x8d,
+ 0xb7, 0x9b, 0x9f, 0xde, 0xce, 0xbf, 0xbc, 0x1d, 0x90, 0xda, 0xa0, 0xc4, 0x0e, 0x7d, 0xa2, 0x6b,
+ 0xb0, 0x73, 0xca, 0xc5, 0x9a, 0xd7, 0x12, 0x8c, 0xb5, 0x19, 0xdb, 0x77, 0x71, 0x93, 0x2b, 0x36,
+ 0xb9, 0xe2, 0xc0, 0xe4, 0x4a, 0x40, 0xe1, 0x2b, 0x4d, 0xbb, 0xf7, 0xe6, 0x48, 0x33, 0x85, 0x46,
+ 0x91, 0x5c, 0xfe, 0xd7, 0x29, 0x0b, 0x4d, 0xbb, 0xcf, 0x30, 0xfa, 0xee, 0x4d, 0xe5, 0xb2, 0x61,
+ 0x75, 0x9b, 0x96, 0x2a, 0xd1, 0x1c, 0x7a, 0xaf, 0x34, 0xdf, 0xb3, 0x76, 0xf0, 0xe9, 0x6f, 0x27,
+ 0xd6, 0xa4, 0x61, 0xaf, 0x3a, 0x97, 0x56, 0xf8, 0x5f, 0xaf, 0x9e, 0x7f, 0x04, 0x00, 0x00, 0xff,
+ 0xff, 0xac, 0x56, 0x49, 0xa3, 0x42, 0x02, 0x00, 0x00,
}
« no previous file with comments | « client/cipd/internal/messages/messages.proto ('k') | client/cmd/cipd/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698