Documentation ¶
Index ¶
- Variables
- type CacheEntry
- func (*CacheEntry) Descriptor() ([]byte, []int)deprecated
- func (x *CacheEntry) GetId() string
- func (x *CacheEntry) GetIncludedSymbols() []string
- func (x *CacheEntry) GetSchema() *Schema
- func (x *CacheEntry) GetSchemaTimestamp() *timestamppb.Timestamp
- func (*CacheEntry) ProtoMessage()
- func (x *CacheEntry) ProtoReflect() protoreflect.Message
- func (x *CacheEntry) Reset()
- func (x *CacheEntry) String() string
- type LeaseEntry
- func (*LeaseEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseEntry) GetComputed() *LeaseHolder
- func (m *LeaseEntry) GetHolder() isLeaseEntry_Holder
- func (x *LeaseEntry) GetUserProvided() []byte
- func (*LeaseEntry) ProtoMessage()
- func (x *LeaseEntry) ProtoReflect() protoreflect.Message
- func (x *LeaseEntry) Reset()
- func (x *LeaseEntry) String() string
- type LeaseEntry_Computed
- type LeaseEntry_UserProvided
- type LeaseHolder
- func (*LeaseHolder) Descriptor() ([]byte, []int)deprecated
- func (x *LeaseHolder) GetHostname() string
- func (x *LeaseHolder) GetIpAddress() []byte
- func (x *LeaseHolder) GetMacAddress() []byte
- func (x *LeaseHolder) GetPid() uint64
- func (x *LeaseHolder) GetStartNanos() uint64
- func (*LeaseHolder) ProtoMessage()
- func (x *LeaseHolder) ProtoReflect() protoreflect.Message
- func (x *LeaseHolder) Reset()
- func (x *LeaseHolder) String() string
- type Schema
Constants ¶
This section is empty.
Variables ¶
View Source
var File_buf_prototransform_v1alpha1_cache_proto protoreflect.FileDescriptor
View Source
var File_buf_prototransform_v1alpha1_lease_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type CacheEntry struct { Schema *Schema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` SchemaTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=schema_timestamp,json=schemaTimestamp,proto3" json:"schema_timestamp,omitempty"` // An identifier for the schema. This allows a cache to verify // that the cached data is for the correct schema. This can be // useful in cases where cache keys must be shortened, to prevent // possible collisions from leading to the wrong schema being used. Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` // If the schema was fetched for specified symbols, this is the // list of those symbols. If empty, this represents the entire // schema identified by id. But if non-empty, it could be filtered // with elements irrelevant to these symbols being omitted. IncludedSymbols []string `protobuf:"bytes,4,rep,name=included_symbols,json=includedSymbols,proto3" json:"included_symbols,omitempty"` // contains filtered or unexported fields }
CacheEntry represents the serialized form of a cached schema.
func (*CacheEntry) Descriptor
deprecated
func (*CacheEntry) Descriptor() ([]byte, []int)
Deprecated: Use CacheEntry.ProtoReflect.Descriptor instead.
func (*CacheEntry) GetId ¶
func (x *CacheEntry) GetId() string
func (*CacheEntry) GetIncludedSymbols ¶
func (x *CacheEntry) GetIncludedSymbols() []string
func (*CacheEntry) GetSchema ¶
func (x *CacheEntry) GetSchema() *Schema
func (*CacheEntry) GetSchemaTimestamp ¶
func (x *CacheEntry) GetSchemaTimestamp() *timestamppb.Timestamp
func (*CacheEntry) ProtoMessage ¶
func (*CacheEntry) ProtoMessage()
func (*CacheEntry) ProtoReflect ¶
func (x *CacheEntry) ProtoReflect() protoreflect.Message
func (*CacheEntry) Reset ¶
func (x *CacheEntry) Reset()
func (*CacheEntry) String ¶
func (x *CacheEntry) String() string
type LeaseEntry ¶ added in v0.2.0
type LeaseEntry struct { // Description of the process that holds the lease. // // Types that are assignable to Holder: // // *LeaseEntry_Computed // *LeaseEntry_UserProvided Holder isLeaseEntry_Holder `protobuf_oneof:"holder"` // contains filtered or unexported fields }
LeaseEntry represents the serialized form of a lease.
func (*LeaseEntry) Descriptor
deprecated
added in
v0.2.0
func (*LeaseEntry) Descriptor() ([]byte, []int)
Deprecated: Use LeaseEntry.ProtoReflect.Descriptor instead.
func (*LeaseEntry) GetComputed ¶ added in v0.2.0
func (x *LeaseEntry) GetComputed() *LeaseHolder
func (*LeaseEntry) GetHolder ¶ added in v0.2.0
func (m *LeaseEntry) GetHolder() isLeaseEntry_Holder
func (*LeaseEntry) GetUserProvided ¶ added in v0.2.0
func (x *LeaseEntry) GetUserProvided() []byte
func (*LeaseEntry) ProtoMessage ¶ added in v0.2.0
func (*LeaseEntry) ProtoMessage()
func (*LeaseEntry) ProtoReflect ¶ added in v0.2.0
func (x *LeaseEntry) ProtoReflect() protoreflect.Message
func (*LeaseEntry) Reset ¶ added in v0.2.0
func (x *LeaseEntry) Reset()
func (*LeaseEntry) String ¶ added in v0.2.0
func (x *LeaseEntry) String() string
type LeaseEntry_Computed ¶ added in v0.2.0
type LeaseEntry_Computed struct {
Computed *LeaseHolder `protobuf:"bytes,1,opt,name=computed,proto3,oneof"`
}
type LeaseEntry_UserProvided ¶ added in v0.2.0
type LeaseEntry_UserProvided struct {
UserProvided []byte `protobuf:"bytes,2,opt,name=user_provided,json=userProvided,proto3,oneof"`
}
type LeaseHolder ¶ added in v0.2.0
type LeaseHolder struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` IpAddress []byte `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` MacAddress []byte `protobuf:"bytes,3,opt,name=mac_address,json=macAddress,proto3" json:"mac_address,omitempty"` Pid uint64 `protobuf:"varint,4,opt,name=pid,proto3" json:"pid,omitempty"` StartNanos uint64 `protobuf:"varint,5,opt,name=start_nanos,json=startNanos,proto3" json:"start_nanos,omitempty"` // contains filtered or unexported fields }
LeaseHolder is a computed leaseholder ID for a client process. These attributes together should uniquely identify any process.
func (*LeaseHolder) Descriptor
deprecated
added in
v0.2.0
func (*LeaseHolder) Descriptor() ([]byte, []int)
Deprecated: Use LeaseHolder.ProtoReflect.Descriptor instead.
func (*LeaseHolder) GetHostname ¶ added in v0.2.0
func (x *LeaseHolder) GetHostname() string
func (*LeaseHolder) GetIpAddress ¶ added in v0.2.0
func (x *LeaseHolder) GetIpAddress() []byte
func (*LeaseHolder) GetMacAddress ¶ added in v0.2.0
func (x *LeaseHolder) GetMacAddress() []byte
func (*LeaseHolder) GetPid ¶ added in v0.2.0
func (x *LeaseHolder) GetPid() uint64
func (*LeaseHolder) GetStartNanos ¶ added in v0.2.0
func (x *LeaseHolder) GetStartNanos() uint64
func (*LeaseHolder) ProtoMessage ¶ added in v0.2.0
func (*LeaseHolder) ProtoMessage()
func (*LeaseHolder) ProtoReflect ¶ added in v0.2.0
func (x *LeaseHolder) ProtoReflect() protoreflect.Message
func (*LeaseHolder) Reset ¶ added in v0.2.0
func (x *LeaseHolder) Reset()
func (*LeaseHolder) String ¶ added in v0.2.0
func (x *LeaseHolder) String() string
type Schema ¶
type Schema struct { Descriptors *descriptorpb.FileDescriptorSet `protobuf:"bytes,1,opt,name=descriptors,proto3" json:"descriptors,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
The actual cached schema. This is a separate message, instead of inlined into CacheEntry, for backwards compatibility with cache entries generated by early versions of this library.
func (*Schema) Descriptor
deprecated
func (*Schema) GetDescriptors ¶
func (x *Schema) GetDescriptors() *descriptorpb.FileDescriptorSet
func (*Schema) GetVersion ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.