orc8r

package
v0.0.0-...-341c48f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Bytes.ProtoReflect.Descriptor instead.

func (*Bytes) GetVal

func (x *Bytes) GetVal() []byte

func (*Bytes) ProtoMessage

func (*Bytes) ProtoMessage()

func (*Bytes) ProtoReflect

func (x *Bytes) ProtoReflect() protoreflect.Message

func (*Bytes) Reset

func (x *Bytes) Reset()

func (*Bytes) String

func (x *Bytes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Changeset.ProtoReflect.Descriptor instead.

func (*Changeset) GetDeleted

func (x *Changeset) GetDeleted() []string

func (*Changeset) GetToRenew

func (x *Changeset) GetToRenew() []*anypb.Any

func (*Changeset) ProtoMessage

func (*Changeset) ProtoMessage()

func (*Changeset) ProtoReflect

func (x *Changeset) ProtoReflect() protoreflect.Message

func (*Changeset) Reset

func (x *Changeset) Reset()

func (*Changeset) String

func (x *Changeset) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Digest.ProtoReflect.Descriptor instead.

func (*Digest) GetMd5Base64Digest

func (x *Digest) GetMd5Base64Digest() string

func (*Digest) ProtoMessage

func (*Digest) ProtoMessage()

func (*Digest) ProtoReflect

func (x *Digest) ProtoReflect() protoreflect.Message

func (*Digest) Reset

func (x *Digest) Reset()

func (*Digest) String

func (x *Digest) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IDList.ProtoReflect.Descriptor instead.

func (*IDList) GetIds

func (x *IDList) GetIds() []string

func (*IDList) ProtoMessage

func (*IDList) ProtoMessage()

func (*IDList) ProtoReflect

func (x *IDList) ProtoReflect() protoreflect.Message

func (*IDList) Reset

func (x *IDList) Reset()

func (*IDList) String

func (x *IDList) String() string

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

const (
	LogLevel_DEBUG   LogLevel = 0
	LogLevel_INFO    LogLevel = 1
	LogLevel_WARNING LogLevel = 2
	LogLevel_ERROR   LogLevel = 3
	LogLevel_FATAL   LogLevel = 4
)

func (LogLevel) Descriptor

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated

func (LogLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String

func (x LogLevel) String() string

func (LogLevel) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use NetworkID.ProtoReflect.Descriptor instead.

func (*NetworkID) GetId

func (x *NetworkID) GetId() string

func (*NetworkID) ProtoMessage

func (*NetworkID) ProtoMessage()

func (*NetworkID) ProtoReflect

func (x *NetworkID) ProtoReflect() protoreflect.Message

func (*NetworkID) Reset

func (x *NetworkID) Reset()

func (*NetworkID) String

func (x *NetworkID) String() string

type Void

type Void struct {
	// contains filtered or unexported fields
}

func (*Void) Descriptor deprecated

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

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect

func (x *Void) ProtoReflect() protoreflect.Message

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

Jump to

Keyboard shortcuts

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