| Index: go/src/infra/tools/cipd/internal/messages/messages.pb.go
|
| diff --git a/go/src/infra/tools/cipd/internal/messages/messages.pb.go b/go/src/infra/tools/cipd/internal/messages/messages.pb.go
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a4c2ec175200388fd5e3152a6f368103b397f04e
|
| --- /dev/null
|
| +++ b/go/src/infra/tools/cipd/internal/messages/messages.pb.go
|
| @@ -0,0 +1,101 @@
|
| +// Code generated by protoc-gen-go.
|
| +// source: messages.proto
|
| +// DO NOT EDIT!
|
| +
|
| +/*
|
| +Package messages is a generated protocol buffer package.
|
| +
|
| +It is generated from these files:
|
| + messages.proto
|
| +
|
| +It has these top-level messages:
|
| + BlobWithSHA1
|
| + TagCache
|
| +*/
|
| +package messages
|
| +
|
| +import proto "github.com/golang/protobuf/proto"
|
| +import fmt "fmt"
|
| +import math "math"
|
| +
|
| +// Reference imports to suppress errors if they are not otherwise used.
|
| +var _ = proto.Marshal
|
| +var _ = fmt.Errorf
|
| +var _ = math.Inf
|
| +
|
| +// BlobWithSHA1 is a wrapper around a binary blob with SHA1 hash to verify
|
| +// its integrity.
|
| +type BlobWithSHA1 struct {
|
| + Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"`
|
| + Sha1 []byte `protobuf:"bytes,2,opt,name=sha1" json:"sha1,omitempty"`
|
| + XXX_unrecognized []byte `json:"-"`
|
| +}
|
| +
|
| +func (m *BlobWithSHA1) Reset() { *m = BlobWithSHA1{} }
|
| +func (m *BlobWithSHA1) String() string { return proto.CompactTextString(m) }
|
| +func (*BlobWithSHA1) ProtoMessage() {}
|
| +
|
| +func (m *BlobWithSHA1) GetBlob() []byte {
|
| + if m != nil {
|
| + return m.Blob
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +func (m *BlobWithSHA1) GetSha1() []byte {
|
| + if m != nil {
|
| + return m.Sha1
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +// TagCache stores a mapping (package name, tag) -> instance ID to speed up
|
| +// subsequence ResolveVersion calls when tags are used.
|
| +type TagCache struct {
|
| + // Capped list of entries, most recently used first.
|
| + Entries []*TagCache_Entry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
|
| + XXX_unrecognized []byte `json:"-"`
|
| +}
|
| +
|
| +func (m *TagCache) Reset() { *m = TagCache{} }
|
| +func (m *TagCache) String() string { return proto.CompactTextString(m) }
|
| +func (*TagCache) ProtoMessage() {}
|
| +
|
| +func (m *TagCache) GetEntries() []*TagCache_Entry {
|
| + if m != nil {
|
| + return m.Entries
|
| + }
|
| + return nil
|
| +}
|
| +
|
| +type TagCache_Entry struct {
|
| + Package *string `protobuf:"bytes,1,opt,name=package" json:"package,omitempty"`
|
| + Tag *string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"`
|
| + InstanceId *string `protobuf:"bytes,3,opt,name=instance_id" json:"instance_id,omitempty"`
|
| + XXX_unrecognized []byte `json:"-"`
|
| +}
|
| +
|
| +func (m *TagCache_Entry) Reset() { *m = TagCache_Entry{} }
|
| +func (m *TagCache_Entry) String() string { return proto.CompactTextString(m) }
|
| +func (*TagCache_Entry) ProtoMessage() {}
|
| +
|
| +func (m *TagCache_Entry) GetPackage() string {
|
| + if m != nil && m.Package != nil {
|
| + return *m.Package
|
| + }
|
| + return ""
|
| +}
|
| +
|
| +func (m *TagCache_Entry) GetTag() string {
|
| + if m != nil && m.Tag != nil {
|
| + return *m.Tag
|
| + }
|
| + return ""
|
| +}
|
| +
|
| +func (m *TagCache_Entry) GetInstanceId() string {
|
| + if m != nil && m.InstanceId != nil {
|
| + return *m.InstanceId
|
| + }
|
| + return ""
|
| +}
|
|
|