import "go.chromium.org/luci/cipd/client/cipd/internal/messages"
type BlobWithSHA256 struct { Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"` Sha256 []byte `protobuf:"bytes,3,opt,name=sha256,proto3" json:"sha256,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BlobWithSHA256 is a wrapper around a binary blob with SHA256 hash to verify its integrity.
func (*BlobWithSHA256) Descriptor() ([]byte, []int)
func (m *BlobWithSHA256) GetBlob() []byte
func (m *BlobWithSHA256) GetSha256() []byte
func (*BlobWithSHA256) ProtoMessage()
func (m *BlobWithSHA256) Reset()
func (m *BlobWithSHA256) String() string
func (m *BlobWithSHA256) XXX_DiscardUnknown()
func (m *BlobWithSHA256) XXX_Merge(src proto.Message)
func (m *BlobWithSHA256) XXX_Size() int
func (m *BlobWithSHA256) XXX_Unmarshal(b []byte) error
type InstanceCache struct { // Entries is a map of {instance id -> information about instance}. Entries map[string]*InstanceCache_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // LastSynced is timestamp when we synchronized Entries with actual // instance files. LastSynced *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_synced,json=lastSynced,proto3" json:"last_synced,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
InstanceCache stores a list of instances and their last access time.
This cache does not depend on a service being used, since an instance's ID is derived only from its contents (regardless from where it was downloaded).
func (*InstanceCache) Descriptor() ([]byte, []int)
func (m *InstanceCache) GetEntries() map[string]*InstanceCache_Entry
func (m *InstanceCache) GetLastSynced() *timestamp.Timestamp
func (*InstanceCache) ProtoMessage()
func (m *InstanceCache) Reset()
func (m *InstanceCache) String() string
func (m *InstanceCache) XXX_DiscardUnknown()
func (m *InstanceCache) XXX_Merge(src proto.Message)
func (m *InstanceCache) XXX_Size() int
func (m *InstanceCache) XXX_Unmarshal(b []byte) error
type InstanceCache_Entry struct { // LastAccess is last time this instance was retrieved from or put to the // cache. LastAccess *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_access,json=lastAccess,proto3" json:"last_access,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Entry stores info about an instance.
func (*InstanceCache_Entry) Descriptor() ([]byte, []int)
func (m *InstanceCache_Entry) GetLastAccess() *timestamp.Timestamp
func (*InstanceCache_Entry) ProtoMessage()
func (m *InstanceCache_Entry) Reset()
func (m *InstanceCache_Entry) String() string
func (m *InstanceCache_Entry) XXX_DiscardUnknown()
func (m *InstanceCache_Entry) XXX_Merge(src proto.Message)
func (m *InstanceCache_Entry) XXX_Size() int
func (m *InstanceCache_Entry) XXX_Unmarshal(b []byte) error
type TagCache struct { // Capped list of entries, most recently resolved is last. Entries []*TagCache_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` FileEntries []*TagCache_FileEntry `protobuf:"bytes,2,rep,name=file_entries,json=fileEntries,proto3" json:"file_entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TagCache stores a mapping (service, package name, tag) -> instance ID to speed up subsequent ResolveVersion calls when tags are used.
It also contains a '(service, instance_id, file_name) -> encoded ObjectRef' mapping which is used for client self-update purposes. file_name is case-sensitive and must always use POSIX-style slashes.
A service is specified by its hostname. We make it part of the key since same tags may point to different instances on different services.
func (m *TagCache) GetEntries() []*TagCache_Entry
func (m *TagCache) GetFileEntries() []*TagCache_FileEntry
type TagCache_Entry struct { Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TagCache_Entry) Descriptor() ([]byte, []int)
func (m *TagCache_Entry) GetInstanceId() string
func (m *TagCache_Entry) GetPackage() string
func (m *TagCache_Entry) GetService() string
func (m *TagCache_Entry) GetTag() string
func (*TagCache_Entry) ProtoMessage()
func (m *TagCache_Entry) Reset()
func (m *TagCache_Entry) String() string
func (m *TagCache_Entry) XXX_DiscardUnknown()
func (m *TagCache_Entry) XXX_Merge(src proto.Message)
func (m *TagCache_Entry) XXX_Size() int
func (m *TagCache_Entry) XXX_Unmarshal(b []byte) error
type TagCache_FileEntry struct { Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"` Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` ObjectRef string `protobuf:"bytes,4,opt,name=object_ref,json=objectRef,proto3" json:"object_ref,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TagCache_FileEntry) Descriptor() ([]byte, []int)
func (m *TagCache_FileEntry) GetFileName() string
func (m *TagCache_FileEntry) GetInstanceId() string
func (m *TagCache_FileEntry) GetObjectRef() string
func (m *TagCache_FileEntry) GetPackage() string
func (m *TagCache_FileEntry) GetService() string
func (*TagCache_FileEntry) ProtoMessage()
func (m *TagCache_FileEntry) Reset()
func (m *TagCache_FileEntry) String() string
func (m *TagCache_FileEntry) XXX_DiscardUnknown()
func (m *TagCache_FileEntry) XXX_Merge(src proto.Message)
func (m *TagCache_FileEntry) XXX_Size() int
func (m *TagCache_FileEntry) XXX_Unmarshal(b []byte) error
Package messages imports 4 packages (graph) and is imported by 2 packages. Updated 2019-12-14. Refresh now. Tools for package owners.