Documentation ¶
Index ¶
- Variables
- type Bytes
- type Changeset
- type Digest
- type DigestTree
- func (*DigestTree) Descriptor() ([]byte, []int)deprecated
- func (x *DigestTree) GetLeafDigests() []*LeafDigest
- func (x *DigestTree) GetRootDigest() *Digest
- func (*DigestTree) ProtoMessage()
- func (x *DigestTree) ProtoReflect() protoreflect.Message
- func (x *DigestTree) Reset()
- func (x *DigestTree) String() string
- type IDList
- type LeafDigest
- type LeafDigests
- type LogLevel
- type NetworkID
- type Void
Constants ¶
This section is empty.
Variables ¶
var ( LogLevel_name = map[int32]string{ 0: "DEBUG", 1: "INFO", 2: "WARNING", 3: "ERROR", 4: "FATAL", } LogLevel_value = map[string]int32{ "DEBUG": 0, "INFO": 1, "WARNING": 2, "ERROR": 3, "FATAL": 4, } )
Enum value maps for LogLevel.
var File_common_proto protoreflect.FileDescriptor
var File_digest_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes struct { Val []byte `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"` // contains filtered or unexported fields }
------------------------------------------------------------------------------- Bytes is a special message type used to marshal & unmarshal unknown types as is -------------------------------------------------------------------------------
func (*Bytes) Descriptor
deprecated
func (*Bytes) ProtoMessage ¶
func (*Bytes) ProtoMessage()
func (*Bytes) ProtoReflect ¶
func (x *Bytes) ProtoReflect() protoreflect.Message
type Changeset ¶
type Changeset struct { // to_renew contains all objects which were added or updated, sorted by ID. ToRenew []*anypb.Any `protobuf:"bytes,1,rep,name=to_renew,json=toRenew,proto3" json:"to_renew,omitempty"` // deleted lists the IDs for all objects which were deleted. Deleted []string `protobuf:"bytes,2,rep,name=deleted,proto3" json:"deleted,omitempty"` // contains filtered or unexported fields }
Changeset contains the set of differences between two lists of objects.
func (*Changeset) Descriptor
deprecated
func (*Changeset) GetDeleted ¶
func (*Changeset) GetToRenew ¶
func (*Changeset) ProtoMessage ¶
func (*Changeset) ProtoMessage()
func (*Changeset) ProtoReflect ¶
func (x *Changeset) ProtoReflect() protoreflect.Message
type Digest ¶
type Digest struct { // md5_base64_digest is a base64-encoded MD5 digest. Md5Base64Digest string `protobuf:"bytes,1,opt,name=md5_base64_digest,json=md5Base64Digest,proto3" json:"md5_base64_digest,omitempty"` // contains filtered or unexported fields }
Digest contains the digest (hash) of some object.
func (*Digest) Descriptor
deprecated
func (*Digest) GetMd5Base64Digest ¶
func (*Digest) ProtoMessage ¶
func (*Digest) ProtoMessage()
func (*Digest) ProtoReflect ¶
func (x *Digest) ProtoReflect() protoreflect.Message
type DigestTree ¶
type DigestTree struct { // root_digest is the amalgum of all leaf digests. RootDigest *Digest `protobuf:"bytes,1,opt,name=root_digest,json=rootDigest,proto3" json:"root_digest,omitempty"` // leaf_digests contains per-object digests, along with the object IDs, sorted by ID. LeafDigests []*LeafDigest `protobuf:"bytes,2,rep,name=leaf_digests,json=leafDigests,proto3" json:"leaf_digests,omitempty"` // contains filtered or unexported fields }
DigestTree contains the full set of digest information for a particular network. DigestTree is similar to a depth=2 Merkle tree.
func (*DigestTree) Descriptor
deprecated
func (*DigestTree) Descriptor() ([]byte, []int)
Deprecated: Use DigestTree.ProtoReflect.Descriptor instead.
func (*DigestTree) GetLeafDigests ¶
func (x *DigestTree) GetLeafDigests() []*LeafDigest
func (*DigestTree) GetRootDigest ¶
func (x *DigestTree) GetRootDigest() *Digest
func (*DigestTree) ProtoMessage ¶
func (*DigestTree) ProtoMessage()
func (*DigestTree) ProtoReflect ¶
func (x *DigestTree) ProtoReflect() protoreflect.Message
func (*DigestTree) Reset ¶
func (x *DigestTree) Reset()
func (*DigestTree) String ¶
func (x *DigestTree) String() string
type IDList ¶
type IDList struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
-------------------------------------------------------------------------- IDList is a generic definition of an array of IDs (network, gateway, etc.) --------------------------------------------------------------------------
func (*IDList) Descriptor
deprecated
func (*IDList) ProtoMessage ¶
func (*IDList) ProtoMessage()
func (*IDList) ProtoReflect ¶
func (x *IDList) ProtoReflect() protoreflect.Message
type LeafDigest ¶
type LeafDigest struct { // id is the network-wide unique identifier of the object. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // digest is the deterministic digest of the object. Digest *Digest `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` // contains filtered or unexported fields }
func (*LeafDigest) Descriptor
deprecated
func (*LeafDigest) Descriptor() ([]byte, []int)
Deprecated: Use LeafDigest.ProtoReflect.Descriptor instead.
func (*LeafDigest) GetDigest ¶
func (x *LeafDigest) GetDigest() *Digest
func (*LeafDigest) GetId ¶
func (x *LeafDigest) GetId() string
func (*LeafDigest) ProtoMessage ¶
func (*LeafDigest) ProtoMessage()
func (*LeafDigest) ProtoReflect ¶
func (x *LeafDigest) ProtoReflect() protoreflect.Message
func (*LeafDigest) Reset ¶
func (x *LeafDigest) Reset()
func (*LeafDigest) String ¶
func (x *LeafDigest) String() string
type LeafDigests ¶
type LeafDigests struct { Digests []*LeafDigest `protobuf:"bytes,1,rep,name=digests,proto3" json:"digests,omitempty"` // contains filtered or unexported fields }
LeafDigests is used to encapsulate a list of leaf digests exclusively for serialization en masse. NOTE: In a proto message used by gRPC endpoints (e.g. DigestTree), the leaf digests should still be represented directly as a list for simplicity.
func (*LeafDigests) Descriptor
deprecated
func (*LeafDigests) Descriptor() ([]byte, []int)
Deprecated: Use LeafDigests.ProtoReflect.Descriptor instead.
func (*LeafDigests) GetDigests ¶
func (x *LeafDigests) GetDigests() []*LeafDigest
func (*LeafDigests) ProtoMessage ¶
func (*LeafDigests) ProtoMessage()
func (*LeafDigests) ProtoReflect ¶
func (x *LeafDigests) ProtoReflect() protoreflect.Message
func (*LeafDigests) Reset ¶
func (x *LeafDigests) Reset()
func (*LeafDigests) String ¶
func (x *LeafDigests) String() string
type LogLevel ¶
type LogLevel int32
-------------------------------------------------------------------------- Logging levels --------------------------------------------------------------------------
func (LogLevel) Descriptor ¶
func (LogLevel) Descriptor() protoreflect.EnumDescriptor
func (LogLevel) EnumDescriptor
deprecated
func (LogLevel) Number ¶
func (x LogLevel) Number() protoreflect.EnumNumber
func (LogLevel) Type ¶
func (LogLevel) Type() protoreflect.EnumType
type NetworkID ¶
type NetworkID struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
-------------------------------------------------------------------------- NetworkID uniquely identifies the network --------------------------------------------------------------------------
func (*NetworkID) Descriptor
deprecated
func (*NetworkID) ProtoMessage ¶
func (*NetworkID) ProtoMessage()
func (*NetworkID) ProtoReflect ¶
func (x *NetworkID) ProtoReflect() protoreflect.Message
type Void ¶
type Void struct {
// contains filtered or unexported fields
}
func (*Void) Descriptor
deprecated
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) ProtoReflect ¶
func (x *Void) ProtoReflect() protoreflect.Message