messages

package
v0.0.0-...-678bb0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package messages is a generated protocol buffer package.

It is generated from these files:

github.com/luci/luci-go/cipd/client/cipd/internal/messages/messages.proto

It has these top-level messages:

BlobWithSHA1
TagCache
InstanceCache

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobWithSHA1

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"`
}

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

func (*BlobWithSHA1) Descriptor

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

func (*BlobWithSHA1) GetBlob

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

func (*BlobWithSHA1) GetSha1

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

func (*BlobWithSHA1) ProtoMessage

func (*BlobWithSHA1) ProtoMessage()

func (*BlobWithSHA1) Reset

func (m *BlobWithSHA1) Reset()

func (*BlobWithSHA1) String

func (m *BlobWithSHA1) String() string

type InstanceCache

type InstanceCache struct {
	// Entries is a map of {instance id -> information about instance}.
	Entries map[string]*InstanceCache_Entry `` /* 134-byte string literal not displayed */
	// LastSynced is timestamp when we synchronized Entries with actual
	// instance files.
	LastSynced *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=last_synced,json=lastSynced" json:"last_synced,omitempty"`
}

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

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

func (*InstanceCache) GetEntries

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

func (*InstanceCache) GetLastSynced

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

func (*InstanceCache) ProtoMessage

func (*InstanceCache) ProtoMessage()

func (*InstanceCache) Reset

func (m *InstanceCache) Reset()

func (*InstanceCache) String

func (m *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 *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=last_access,json=lastAccess" json:"last_access,omitempty"`
}

Entry stores info about an instance.

func (*InstanceCache_Entry) Descriptor

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

func (*InstanceCache_Entry) GetLastAccess

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

func (*InstanceCache_Entry) ProtoMessage

func (*InstanceCache_Entry) ProtoMessage()

func (*InstanceCache_Entry) Reset

func (m *InstanceCache_Entry) Reset()

func (*InstanceCache_Entry) String

func (m *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" json:"entries,omitempty"`
	FileEntries []*TagCache_FileEntry `protobuf:"bytes,2,rep,name=file_entries,json=fileEntries" json:"file_entries,omitempty"`
}

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) -> hash 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

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

func (*TagCache) GetEntries

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

func (*TagCache) GetFileEntries

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

func (*TagCache) ProtoMessage

func (*TagCache) ProtoMessage()

func (*TagCache) Reset

func (m *TagCache) Reset()

func (*TagCache) String

func (m *TagCache) String() string

type TagCache_Entry

type TagCache_Entry struct {
	Service    string `protobuf:"bytes,4,opt,name=service" json:"service,omitempty"`
	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=instanceId" json:"instance_id,omitempty"`
}

func (*TagCache_Entry) Descriptor

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

func (*TagCache_Entry) GetInstanceId

func (m *TagCache_Entry) GetInstanceId() string

func (*TagCache_Entry) GetPackage

func (m *TagCache_Entry) GetPackage() string

func (*TagCache_Entry) GetService

func (m *TagCache_Entry) GetService() string

func (*TagCache_Entry) GetTag

func (m *TagCache_Entry) GetTag() string

func (*TagCache_Entry) ProtoMessage

func (*TagCache_Entry) ProtoMessage()

func (*TagCache_Entry) Reset

func (m *TagCache_Entry) Reset()

func (*TagCache_Entry) String

func (m *TagCache_Entry) String() string

type TagCache_FileEntry

type TagCache_FileEntry struct {
	Service    string `protobuf:"bytes,5,opt,name=service" json:"service,omitempty"`
	Package    string `protobuf:"bytes,1,opt,name=package" json:"package,omitempty"`
	InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId" json:"instance_id,omitempty"`
	FileName   string `protobuf:"bytes,3,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
	Hash       string `protobuf:"bytes,4,opt,name=hash" json:"hash,omitempty"`
}

func (*TagCache_FileEntry) Descriptor

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

func (*TagCache_FileEntry) GetFileName

func (m *TagCache_FileEntry) GetFileName() string

func (*TagCache_FileEntry) GetHash

func (m *TagCache_FileEntry) GetHash() string

func (*TagCache_FileEntry) GetInstanceId

func (m *TagCache_FileEntry) GetInstanceId() string

func (*TagCache_FileEntry) GetPackage

func (m *TagCache_FileEntry) GetPackage() string

func (*TagCache_FileEntry) GetService

func (m *TagCache_FileEntry) GetService() string

func (*TagCache_FileEntry) ProtoMessage

func (*TagCache_FileEntry) ProtoMessage()

func (*TagCache_FileEntry) Reset

func (m *TagCache_FileEntry) Reset()

func (*TagCache_FileEntry) String

func (m *TagCache_FileEntry) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL