luci: go.chromium.org/luci/cipd/client/cipd/internal/messages Index | Files

package messages

import "go.chromium.org/luci/cipd/client/cipd/internal/messages"

Index

Package Files

generate.go messages.pb.go

type BlobWithSHA1 Uses

type BlobWithSHA1 struct {
    Blob                 []byte   `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"`
    Sha1                 []byte   `protobuf:"bytes,2,opt,name=sha1,proto3" json:"sha1,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

BlobWithSHA1 is a wrapper around a binary blob with SHA1 hash to verify its integrity.

The hash is used to detect a corruption due to bad disk blocks, etc. This is not a cryptographic application, any decent checksum algorithm would suffice. SHA1 was chosen somewhat arbitrarily.

func (*BlobWithSHA1) Descriptor Uses

func (*BlobWithSHA1) Descriptor() ([]byte, []int)

func (*BlobWithSHA1) GetBlob Uses

func (m *BlobWithSHA1) GetBlob() []byte

func (*BlobWithSHA1) GetSha1 Uses

func (m *BlobWithSHA1) GetSha1() []byte

func (*BlobWithSHA1) ProtoMessage Uses

func (*BlobWithSHA1) ProtoMessage()

func (*BlobWithSHA1) Reset Uses

func (m *BlobWithSHA1) Reset()

func (*BlobWithSHA1) String Uses

func (m *BlobWithSHA1) String() string

func (*BlobWithSHA1) XXX_DiscardUnknown Uses

func (m *BlobWithSHA1) XXX_DiscardUnknown()

func (*BlobWithSHA1) XXX_Marshal Uses

func (m *BlobWithSHA1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlobWithSHA1) XXX_Merge Uses

func (dst *BlobWithSHA1) XXX_Merge(src proto.Message)

func (*BlobWithSHA1) XXX_Size Uses

func (m *BlobWithSHA1) XXX_Size() int

func (*BlobWithSHA1) XXX_Unmarshal Uses

func (m *BlobWithSHA1) XXX_Unmarshal(b []byte) error

type InstanceCache Uses

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 Uses

func (*InstanceCache) Descriptor() ([]byte, []int)

func (*InstanceCache) GetEntries Uses

func (m *InstanceCache) GetEntries() map[string]*InstanceCache_Entry

func (*InstanceCache) GetLastSynced Uses

func (m *InstanceCache) GetLastSynced() *timestamp.Timestamp

func (*InstanceCache) ProtoMessage Uses

func (*InstanceCache) ProtoMessage()

func (*InstanceCache) Reset Uses

func (m *InstanceCache) Reset()

func (*InstanceCache) String Uses

func (m *InstanceCache) String() string

func (*InstanceCache) XXX_DiscardUnknown Uses

func (m *InstanceCache) XXX_DiscardUnknown()

func (*InstanceCache) XXX_Marshal Uses

func (m *InstanceCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstanceCache) XXX_Merge Uses

func (dst *InstanceCache) XXX_Merge(src proto.Message)

func (*InstanceCache) XXX_Size Uses

func (m *InstanceCache) XXX_Size() int

func (*InstanceCache) XXX_Unmarshal Uses

func (m *InstanceCache) XXX_Unmarshal(b []byte) error

type InstanceCache_Entry Uses

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 Uses

func (*InstanceCache_Entry) Descriptor() ([]byte, []int)

func (*InstanceCache_Entry) GetLastAccess Uses

func (m *InstanceCache_Entry) GetLastAccess() *timestamp.Timestamp

func (*InstanceCache_Entry) ProtoMessage Uses

func (*InstanceCache_Entry) ProtoMessage()

func (*InstanceCache_Entry) Reset Uses

func (m *InstanceCache_Entry) Reset()

func (*InstanceCache_Entry) String Uses

func (m *InstanceCache_Entry) String() string

func (*InstanceCache_Entry) XXX_DiscardUnknown Uses

func (m *InstanceCache_Entry) XXX_DiscardUnknown()

func (*InstanceCache_Entry) XXX_Marshal Uses

func (m *InstanceCache_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InstanceCache_Entry) XXX_Merge Uses

func (dst *InstanceCache_Entry) XXX_Merge(src proto.Message)

func (*InstanceCache_Entry) XXX_Size Uses

func (m *InstanceCache_Entry) XXX_Size() int

func (*InstanceCache_Entry) XXX_Unmarshal Uses

func (m *InstanceCache_Entry) XXX_Unmarshal(b []byte) error

type TagCache Uses

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-senstive 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 Uses

func (*TagCache) Descriptor() ([]byte, []int)

func (*TagCache) GetEntries Uses

func (m *TagCache) GetEntries() []*TagCache_Entry

func (*TagCache) GetFileEntries Uses

func (m *TagCache) GetFileEntries() []*TagCache_FileEntry

func (*TagCache) ProtoMessage Uses

func (*TagCache) ProtoMessage()

func (*TagCache) Reset Uses

func (m *TagCache) Reset()

func (*TagCache) String Uses

func (m *TagCache) String() string

func (*TagCache) XXX_DiscardUnknown Uses

func (m *TagCache) XXX_DiscardUnknown()

func (*TagCache) XXX_Marshal Uses

func (m *TagCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagCache) XXX_Merge Uses

func (dst *TagCache) XXX_Merge(src proto.Message)

func (*TagCache) XXX_Size Uses

func (m *TagCache) XXX_Size() int

func (*TagCache) XXX_Unmarshal Uses

func (m *TagCache) XXX_Unmarshal(b []byte) error

type TagCache_Entry Uses

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 Uses

func (*TagCache_Entry) Descriptor() ([]byte, []int)

func (*TagCache_Entry) GetInstanceId Uses

func (m *TagCache_Entry) GetInstanceId() string

func (*TagCache_Entry) GetPackage Uses

func (m *TagCache_Entry) GetPackage() string

func (*TagCache_Entry) GetService Uses

func (m *TagCache_Entry) GetService() string

func (*TagCache_Entry) GetTag Uses

func (m *TagCache_Entry) GetTag() string

func (*TagCache_Entry) ProtoMessage Uses

func (*TagCache_Entry) ProtoMessage()

func (*TagCache_Entry) Reset Uses

func (m *TagCache_Entry) Reset()

func (*TagCache_Entry) String Uses

func (m *TagCache_Entry) String() string

func (*TagCache_Entry) XXX_DiscardUnknown Uses

func (m *TagCache_Entry) XXX_DiscardUnknown()

func (*TagCache_Entry) XXX_Marshal Uses

func (m *TagCache_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagCache_Entry) XXX_Merge Uses

func (dst *TagCache_Entry) XXX_Merge(src proto.Message)

func (*TagCache_Entry) XXX_Size Uses

func (m *TagCache_Entry) XXX_Size() int

func (*TagCache_Entry) XXX_Unmarshal Uses

func (m *TagCache_Entry) XXX_Unmarshal(b []byte) error

type TagCache_FileEntry Uses

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 Uses

func (*TagCache_FileEntry) Descriptor() ([]byte, []int)

func (*TagCache_FileEntry) GetFileName Uses

func (m *TagCache_FileEntry) GetFileName() string

func (*TagCache_FileEntry) GetInstanceId Uses

func (m *TagCache_FileEntry) GetInstanceId() string

func (*TagCache_FileEntry) GetObjectRef Uses

func (m *TagCache_FileEntry) GetObjectRef() string

func (*TagCache_FileEntry) GetPackage Uses

func (m *TagCache_FileEntry) GetPackage() string

func (*TagCache_FileEntry) GetService Uses

func (m *TagCache_FileEntry) GetService() string

func (*TagCache_FileEntry) ProtoMessage Uses

func (*TagCache_FileEntry) ProtoMessage()

func (*TagCache_FileEntry) Reset Uses

func (m *TagCache_FileEntry) Reset()

func (*TagCache_FileEntry) String Uses

func (m *TagCache_FileEntry) String() string

func (*TagCache_FileEntry) XXX_DiscardUnknown Uses

func (m *TagCache_FileEntry) XXX_DiscardUnknown()

func (*TagCache_FileEntry) XXX_Marshal Uses

func (m *TagCache_FileEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagCache_FileEntry) XXX_Merge Uses

func (dst *TagCache_FileEntry) XXX_Merge(src proto.Message)

func (*TagCache_FileEntry) XXX_Size Uses

func (m *TagCache_FileEntry) XXX_Size() int

func (*TagCache_FileEntry) XXX_Unmarshal Uses

func (m *TagCache_FileEntry) XXX_Unmarshal(b []byte) error

Package messages imports 4 packages (graph) and is imported by 2 packages. Updated 2018-08-14. Refresh now. Tools for package owners.