Documentation ¶
Index ¶
- Variables
- type BlobWithSHA256
- func (*BlobWithSHA256) Descriptor() ([]byte, []int)deprecated
- func (x *BlobWithSHA256) GetBlob() []byte
- func (x *BlobWithSHA256) GetSha256() []byte
- func (*BlobWithSHA256) ProtoMessage()
- func (x *BlobWithSHA256) ProtoReflect() protoreflect.Message
- func (x *BlobWithSHA256) Reset()
- func (x *BlobWithSHA256) String() string
- type InstanceCache
- func (*InstanceCache) Descriptor() ([]byte, []int)deprecated
- func (x *InstanceCache) GetEntries() map[string]*InstanceCache_Entry
- func (x *InstanceCache) GetLastSynced() *timestamppb.Timestamp
- func (*InstanceCache) ProtoMessage()
- func (x *InstanceCache) ProtoReflect() protoreflect.Message
- func (x *InstanceCache) Reset()
- func (x *InstanceCache) String() string
- type InstanceCache_Entry
- func (*InstanceCache_Entry) Descriptor() ([]byte, []int)deprecated
- func (x *InstanceCache_Entry) GetLastAccess() *timestamppb.Timestamp
- func (*InstanceCache_Entry) ProtoMessage()
- func (x *InstanceCache_Entry) ProtoReflect() protoreflect.Message
- func (x *InstanceCache_Entry) Reset()
- func (x *InstanceCache_Entry) String() string
- type TagCache
- func (*TagCache) Descriptor() ([]byte, []int)deprecated
- func (x *TagCache) GetEntries() []*TagCache_Entry
- func (x *TagCache) GetFileEntries() []*TagCache_FileEntry
- func (*TagCache) ProtoMessage()
- func (x *TagCache) ProtoReflect() protoreflect.Message
- func (x *TagCache) Reset()
- func (x *TagCache) String() string
- type TagCache_Entry
- func (*TagCache_Entry) Descriptor() ([]byte, []int)deprecated
- func (x *TagCache_Entry) GetInstanceId() string
- func (x *TagCache_Entry) GetPackage() string
- func (x *TagCache_Entry) GetService() string
- func (x *TagCache_Entry) GetTag() string
- func (*TagCache_Entry) ProtoMessage()
- func (x *TagCache_Entry) ProtoReflect() protoreflect.Message
- func (x *TagCache_Entry) Reset()
- func (x *TagCache_Entry) String() string
- type TagCache_FileEntry
- func (*TagCache_FileEntry) Descriptor() ([]byte, []int)deprecated
- func (x *TagCache_FileEntry) GetFileName() string
- func (x *TagCache_FileEntry) GetInstanceId() string
- func (x *TagCache_FileEntry) GetObjectRef() string
- func (x *TagCache_FileEntry) GetPackage() string
- func (x *TagCache_FileEntry) GetService() string
- func (*TagCache_FileEntry) ProtoMessage()
- func (x *TagCache_FileEntry) ProtoReflect() protoreflect.Message
- func (x *TagCache_FileEntry) Reset()
- func (x *TagCache_FileEntry) String() string
Constants ¶
This section is empty.
Variables ¶
var File_go_chromium_org_luci_cipd_client_cipd_internal_messages_messages_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BlobWithSHA256 ¶
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"` // contains filtered or unexported fields }
BlobWithSHA256 is a wrapper around a binary blob with SHA256 hash to verify its integrity.
func (*BlobWithSHA256) Descriptor
deprecated
func (*BlobWithSHA256) Descriptor() ([]byte, []int)
Deprecated: Use BlobWithSHA256.ProtoReflect.Descriptor instead.
func (*BlobWithSHA256) GetBlob ¶
func (x *BlobWithSHA256) GetBlob() []byte
func (*BlobWithSHA256) GetSha256 ¶
func (x *BlobWithSHA256) GetSha256() []byte
func (*BlobWithSHA256) ProtoMessage ¶
func (*BlobWithSHA256) ProtoMessage()
func (*BlobWithSHA256) ProtoReflect ¶
func (x *BlobWithSHA256) ProtoReflect() protoreflect.Message
func (*BlobWithSHA256) Reset ¶
func (x *BlobWithSHA256) Reset()
func (*BlobWithSHA256) String ¶
func (x *BlobWithSHA256) String() string
type InstanceCache ¶
type InstanceCache struct { // Entries is a map of {instance id -> information about instance}. Entries map[string]*InstanceCache_Entry `` /* 155-byte string literal not displayed */ // LastSynced is timestamp when we synchronized Entries with actual // instance files. LastSynced *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_synced,json=lastSynced,proto3" json:"last_synced,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*InstanceCache) Descriptor() ([]byte, []int)
Deprecated: Use InstanceCache.ProtoReflect.Descriptor instead.
func (*InstanceCache) GetEntries ¶
func (x *InstanceCache) GetEntries() map[string]*InstanceCache_Entry
func (*InstanceCache) GetLastSynced ¶
func (x *InstanceCache) GetLastSynced() *timestamppb.Timestamp
func (*InstanceCache) ProtoMessage ¶
func (*InstanceCache) ProtoMessage()
func (*InstanceCache) ProtoReflect ¶
func (x *InstanceCache) ProtoReflect() protoreflect.Message
func (*InstanceCache) Reset ¶
func (x *InstanceCache) Reset()
func (*InstanceCache) String ¶
func (x *InstanceCache) String() string
type InstanceCache_Entry ¶
type InstanceCache_Entry struct { // LastAccess is last time this instance was retrieved from or put to the // cache. LastAccess *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=last_access,json=lastAccess,proto3" json:"last_access,omitempty"` // contains filtered or unexported fields }
Entry stores info about an instance.
func (*InstanceCache_Entry) Descriptor
deprecated
func (*InstanceCache_Entry) Descriptor() ([]byte, []int)
Deprecated: Use InstanceCache_Entry.ProtoReflect.Descriptor instead.
func (*InstanceCache_Entry) GetLastAccess ¶
func (x *InstanceCache_Entry) GetLastAccess() *timestamppb.Timestamp
func (*InstanceCache_Entry) ProtoMessage ¶
func (*InstanceCache_Entry) ProtoMessage()
func (*InstanceCache_Entry) ProtoReflect ¶
func (x *InstanceCache_Entry) ProtoReflect() protoreflect.Message
func (*InstanceCache_Entry) Reset ¶
func (x *InstanceCache_Entry) Reset()
func (*InstanceCache_Entry) String ¶
func (x *InstanceCache_Entry) String() string
type TagCache ¶
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"` // contains filtered or unexported fields }
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 (*TagCache) Descriptor
deprecated
func (*TagCache) GetEntries ¶
func (x *TagCache) GetEntries() []*TagCache_Entry
func (*TagCache) GetFileEntries ¶
func (x *TagCache) GetFileEntries() []*TagCache_FileEntry
func (*TagCache) ProtoMessage ¶
func (*TagCache) ProtoMessage()
func (*TagCache) ProtoReflect ¶
func (x *TagCache) ProtoReflect() protoreflect.Message
type TagCache_Entry ¶
type TagCache_Entry struct { Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` // e.g. 'chrome-infra-packages.appspot.com' Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` // name of a tagged CIPD package Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // the tag, e.g. 'k:v' InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // the instance ID it resolves to // contains filtered or unexported fields }
func (*TagCache_Entry) Descriptor
deprecated
func (*TagCache_Entry) Descriptor() ([]byte, []int)
Deprecated: Use TagCache_Entry.ProtoReflect.Descriptor instead.
func (*TagCache_Entry) GetInstanceId ¶
func (x *TagCache_Entry) GetInstanceId() string
func (*TagCache_Entry) GetPackage ¶
func (x *TagCache_Entry) GetPackage() string
func (*TagCache_Entry) GetService ¶
func (x *TagCache_Entry) GetService() string
func (*TagCache_Entry) GetTag ¶
func (x *TagCache_Entry) GetTag() string
func (*TagCache_Entry) ProtoMessage ¶
func (*TagCache_Entry) ProtoMessage()
func (*TagCache_Entry) ProtoReflect ¶
func (x *TagCache_Entry) ProtoReflect() protoreflect.Message
func (*TagCache_Entry) Reset ¶
func (x *TagCache_Entry) Reset()
func (*TagCache_Entry) String ¶
func (x *TagCache_Entry) String() string
type TagCache_FileEntry ¶
type TagCache_FileEntry struct { Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"` // e.g. 'chrome-infra-packages.appspot.com' Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` // name of a CIPD package containing the file InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // identifier of the CIPD package instance FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // file name inside the package, POSIX-style slashes ObjectRef string `protobuf:"bytes,4,opt,name=object_ref,json=objectRef,proto3" json:"object_ref,omitempty"` // file's ObjectRef as encoded by ObjectRefToInstanceID (for legacy reasons) // contains filtered or unexported fields }
func (*TagCache_FileEntry) Descriptor
deprecated
func (*TagCache_FileEntry) Descriptor() ([]byte, []int)
Deprecated: Use TagCache_FileEntry.ProtoReflect.Descriptor instead.
func (*TagCache_FileEntry) GetFileName ¶
func (x *TagCache_FileEntry) GetFileName() string
func (*TagCache_FileEntry) GetInstanceId ¶
func (x *TagCache_FileEntry) GetInstanceId() string
func (*TagCache_FileEntry) GetObjectRef ¶
func (x *TagCache_FileEntry) GetObjectRef() string
func (*TagCache_FileEntry) GetPackage ¶
func (x *TagCache_FileEntry) GetPackage() string
func (*TagCache_FileEntry) GetService ¶
func (x *TagCache_FileEntry) GetService() string
func (*TagCache_FileEntry) ProtoMessage ¶
func (*TagCache_FileEntry) ProtoMessage()
func (*TagCache_FileEntry) ProtoReflect ¶
func (x *TagCache_FileEntry) ProtoReflect() protoreflect.Message
func (*TagCache_FileEntry) Reset ¶
func (x *TagCache_FileEntry) Reset()
func (*TagCache_FileEntry) String ¶
func (x *TagCache_FileEntry) String() string