Documentation ¶
Index ¶
- type BlobWithSHA256
- 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_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlobWithSHA256) XXX_Merge(src proto.Message)
- func (m *BlobWithSHA256) XXX_Size() int
- func (m *BlobWithSHA256) XXX_Unmarshal(b []byte) error
- type InstanceCache
- 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_Marshal(b []byte, deterministic bool) ([]byte, error)
- 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
- 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_Marshal(b []byte, deterministic bool) ([]byte, error)
- 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
- func (*TagCache) Descriptor() ([]byte, []int)
- func (m *TagCache) GetEntries() []*TagCache_Entry
- func (m *TagCache) GetFileEntries() []*TagCache_FileEntry
- func (*TagCache) ProtoMessage()
- func (m *TagCache) Reset()
- func (m *TagCache) String() string
- func (m *TagCache) XXX_DiscardUnknown()
- func (m *TagCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TagCache) XXX_Merge(src proto.Message)
- func (m *TagCache) XXX_Size() int
- func (m *TagCache) XXX_Unmarshal(b []byte) error
- type TagCache_Entry
- 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_Marshal(b []byte, deterministic bool) ([]byte, error)
- 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
- 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_Marshal(b []byte, deterministic bool) ([]byte, error)
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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"` 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 ¶
func (*BlobWithSHA256) Descriptor() ([]byte, []int)
func (*BlobWithSHA256) GetBlob ¶
func (m *BlobWithSHA256) GetBlob() []byte
func (*BlobWithSHA256) GetSha256 ¶
func (m *BlobWithSHA256) GetSha256() []byte
func (*BlobWithSHA256) ProtoMessage ¶
func (*BlobWithSHA256) ProtoMessage()
func (*BlobWithSHA256) Reset ¶
func (m *BlobWithSHA256) Reset()
func (*BlobWithSHA256) String ¶
func (m *BlobWithSHA256) String() string
func (*BlobWithSHA256) XXX_DiscardUnknown ¶
func (m *BlobWithSHA256) XXX_DiscardUnknown()
func (*BlobWithSHA256) XXX_Marshal ¶
func (m *BlobWithSHA256) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlobWithSHA256) XXX_Merge ¶
func (m *BlobWithSHA256) XXX_Merge(src proto.Message)
func (*BlobWithSHA256) XXX_Size ¶
func (m *BlobWithSHA256) XXX_Size() int
func (*BlobWithSHA256) XXX_Unmarshal ¶
func (m *BlobWithSHA256) XXX_Unmarshal(b []byte) error
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 *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 ¶
func (*InstanceCache) Descriptor() ([]byte, []int)
func (*InstanceCache) GetEntries ¶
func (m *InstanceCache) GetEntries() map[string]*InstanceCache_Entry
func (*InstanceCache) GetLastSynced ¶
func (m *InstanceCache) GetLastSynced() *timestamp.Timestamp
func (*InstanceCache) ProtoMessage ¶
func (*InstanceCache) ProtoMessage()
func (*InstanceCache) Reset ¶
func (m *InstanceCache) Reset()
func (*InstanceCache) String ¶
func (m *InstanceCache) String() string
func (*InstanceCache) XXX_DiscardUnknown ¶
func (m *InstanceCache) XXX_DiscardUnknown()
func (*InstanceCache) XXX_Marshal ¶
func (m *InstanceCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstanceCache) XXX_Merge ¶
func (m *InstanceCache) XXX_Merge(src proto.Message)
func (*InstanceCache) XXX_Size ¶
func (m *InstanceCache) XXX_Size() int
func (*InstanceCache) XXX_Unmarshal ¶
func (m *InstanceCache) XXX_Unmarshal(b []byte) error
type InstanceCache_Entry ¶
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 ¶
func (*InstanceCache_Entry) Descriptor() ([]byte, []int)
func (*InstanceCache_Entry) GetLastAccess ¶
func (m *InstanceCache_Entry) GetLastAccess() *timestamp.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
func (*InstanceCache_Entry) XXX_DiscardUnknown ¶
func (m *InstanceCache_Entry) XXX_DiscardUnknown()
func (*InstanceCache_Entry) XXX_Marshal ¶
func (m *InstanceCache_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstanceCache_Entry) XXX_Merge ¶
func (m *InstanceCache_Entry) XXX_Merge(src proto.Message)
func (*InstanceCache_Entry) XXX_Size ¶
func (m *InstanceCache_Entry) XXX_Size() int
func (*InstanceCache_Entry) XXX_Unmarshal ¶
func (m *InstanceCache_Entry) XXX_Unmarshal(b []byte) error
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"` 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 (*TagCache) Descriptor ¶
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) XXX_DiscardUnknown ¶
func (m *TagCache) XXX_DiscardUnknown()
func (*TagCache) XXX_Marshal ¶
func (*TagCache) XXX_Unmarshal ¶
type TagCache_Entry ¶
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 ¶
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
func (*TagCache_Entry) XXX_DiscardUnknown ¶
func (m *TagCache_Entry) XXX_DiscardUnknown()
func (*TagCache_Entry) XXX_Marshal ¶
func (m *TagCache_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TagCache_Entry) XXX_Merge ¶
func (m *TagCache_Entry) XXX_Merge(src proto.Message)
func (*TagCache_Entry) XXX_Size ¶
func (m *TagCache_Entry) XXX_Size() int
func (*TagCache_Entry) XXX_Unmarshal ¶
func (m *TagCache_Entry) XXX_Unmarshal(b []byte) error
type TagCache_FileEntry ¶
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 ¶
func (*TagCache_FileEntry) Descriptor() ([]byte, []int)
func (*TagCache_FileEntry) GetFileName ¶
func (m *TagCache_FileEntry) GetFileName() string
func (*TagCache_FileEntry) GetInstanceId ¶
func (m *TagCache_FileEntry) GetInstanceId() string
func (*TagCache_FileEntry) GetObjectRef ¶
func (m *TagCache_FileEntry) GetObjectRef() 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
func (*TagCache_FileEntry) XXX_DiscardUnknown ¶
func (m *TagCache_FileEntry) XXX_DiscardUnknown()
func (*TagCache_FileEntry) XXX_Marshal ¶
func (m *TagCache_FileEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TagCache_FileEntry) XXX_Merge ¶
func (m *TagCache_FileEntry) XXX_Merge(src proto.Message)
func (*TagCache_FileEntry) XXX_Size ¶
func (m *TagCache_FileEntry) XXX_Size() int
func (*TagCache_FileEntry) XXX_Unmarshal ¶
func (m *TagCache_FileEntry) XXX_Unmarshal(b []byte) error