proto

package
v0.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPort = 4490
View Source
const Version = 1

Variables

View Source
var (
	ResponseType_name = map[int32]string{
		0: "OK",
		1: "NAT_DETECTED",
		2: "UNKNOWN_DST_CLUSTER",
		3: "UNKNOWN_DST_ENDPOINT",
		4: "MALFORMED",
	}
	ResponseType_value = map[string]int32{
		"OK":                   0,
		"NAT_DETECTED":         1,
		"UNKNOWN_DST_CLUSTER":  2,
		"UNKNOWN_DST_ENDPOINT": 3,
		"MALFORMED":            4,
	}
)

Enum value maps for ResponseType.

View Source
var File_pkg_natdiscovery_proto_natdiscovery_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EndpointDetails

type EndpointDetails struct {

	// should we hash this for privacy? a hash can be checked against a known list, but can't be decoded
	ClusterId  string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	EndpointId string `protobuf:"bytes,2,opt,name=endpoint_id,json=endpointId,proto3" json:"endpoint_id,omitempty"`
	// contains filtered or unexported fields
}

func (*EndpointDetails) Descriptor deprecated

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

Deprecated: Use EndpointDetails.ProtoReflect.Descriptor instead.

func (*EndpointDetails) GetClusterId

func (x *EndpointDetails) GetClusterId() string

func (*EndpointDetails) GetEndpointId

func (x *EndpointDetails) GetEndpointId() string

func (*EndpointDetails) ProtoMessage

func (*EndpointDetails) ProtoMessage()

func (*EndpointDetails) ProtoReflect

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

func (*EndpointDetails) Reset

func (x *EndpointDetails) Reset()

func (*EndpointDetails) String

func (x *EndpointDetails) String() string

type IPPortPair

type IPPortPair struct {
	IP   string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"`
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*IPPortPair) Descriptor deprecated

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

Deprecated: Use IPPortPair.ProtoReflect.Descriptor instead.

func (*IPPortPair) GetIP

func (x *IPPortPair) GetIP() string

func (*IPPortPair) GetPort

func (x *IPPortPair) GetPort() uint32

func (*IPPortPair) ProtoMessage

func (*IPPortPair) ProtoMessage()

func (*IPPortPair) ProtoReflect

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

func (*IPPortPair) Reset

func (x *IPPortPair) Reset()

func (*IPPortPair) String

func (x *IPPortPair) String() string

type ResponseType

type ResponseType int32
const (
	ResponseType_OK                   ResponseType = 0
	ResponseType_NAT_DETECTED         ResponseType = 1
	ResponseType_UNKNOWN_DST_CLUSTER  ResponseType = 2
	ResponseType_UNKNOWN_DST_ENDPOINT ResponseType = 3
	ResponseType_MALFORMED            ResponseType = 4
)

func (ResponseType) Descriptor

func (ResponseType) Enum

func (x ResponseType) Enum() *ResponseType

func (ResponseType) EnumDescriptor deprecated

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

Deprecated: Use ResponseType.Descriptor instead.

func (ResponseType) Number

func (ResponseType) String

func (x ResponseType) String() string

func (ResponseType) Type

type SubmarinerNATDiscoveryMessage added in v0.10.1

type SubmarinerNATDiscoveryMessage struct {
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Types that are assignable to Message:
	//	*SubmarinerNATDiscoveryMessage_Request
	//	*SubmarinerNATDiscoveryMessage_Response
	Message isSubmarinerNATDiscoveryMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*SubmarinerNATDiscoveryMessage) Descriptor deprecated added in v0.10.1

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

Deprecated: Use SubmarinerNATDiscoveryMessage.ProtoReflect.Descriptor instead.

func (*SubmarinerNATDiscoveryMessage) GetMessage added in v0.10.1

func (m *SubmarinerNATDiscoveryMessage) GetMessage() isSubmarinerNATDiscoveryMessage_Message

func (*SubmarinerNATDiscoveryMessage) GetRequest added in v0.10.1

func (*SubmarinerNATDiscoveryMessage) GetResponse added in v0.10.1

func (*SubmarinerNATDiscoveryMessage) GetVersion added in v0.10.1

func (x *SubmarinerNATDiscoveryMessage) GetVersion() int32

func (*SubmarinerNATDiscoveryMessage) ProtoMessage added in v0.10.1

func (*SubmarinerNATDiscoveryMessage) ProtoMessage()

func (*SubmarinerNATDiscoveryMessage) ProtoReflect added in v0.10.1

func (*SubmarinerNATDiscoveryMessage) Reset added in v0.10.1

func (x *SubmarinerNATDiscoveryMessage) Reset()

func (*SubmarinerNATDiscoveryMessage) String added in v0.10.1

type SubmarinerNATDiscoveryMessage_Request added in v0.10.1

type SubmarinerNATDiscoveryMessage_Request struct {
	Request *SubmarinerNATDiscoveryRequest `protobuf:"bytes,2,opt,name=request,proto3,oneof"`
}

type SubmarinerNATDiscoveryMessage_Response added in v0.10.1

type SubmarinerNATDiscoveryMessage_Response struct {
	Response *SubmarinerNATDiscoveryResponse `protobuf:"bytes,3,opt,name=response,proto3,oneof"`
}

type SubmarinerNATDiscoveryRequest added in v0.10.1

type SubmarinerNATDiscoveryRequest struct {
	RequestNumber uint64           `protobuf:"varint,1,opt,name=request_number,json=requestNumber,proto3" json:"request_number,omitempty"`
	Sender        *EndpointDetails `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver      *EndpointDetails `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// The following information would allow the receiver to identify
	// and log if any form of NAT traversal is happening on the path
	UsingSrc *IPPortPair `protobuf:"bytes,4,opt,name=using_src,json=usingSrc,proto3" json:"using_src,omitempty"`
	UsingDst *IPPortPair `protobuf:"bytes,5,opt,name=using_dst,json=usingDst,proto3" json:"using_dst,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmarinerNATDiscoveryRequest) Descriptor deprecated added in v0.10.1

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

Deprecated: Use SubmarinerNATDiscoveryRequest.ProtoReflect.Descriptor instead.

func (*SubmarinerNATDiscoveryRequest) GetReceiver added in v0.10.1

func (*SubmarinerNATDiscoveryRequest) GetRequestNumber added in v0.10.1

func (x *SubmarinerNATDiscoveryRequest) GetRequestNumber() uint64

func (*SubmarinerNATDiscoveryRequest) GetSender added in v0.10.1

func (*SubmarinerNATDiscoveryRequest) GetUsingDst added in v0.10.1

func (x *SubmarinerNATDiscoveryRequest) GetUsingDst() *IPPortPair

func (*SubmarinerNATDiscoveryRequest) GetUsingSrc added in v0.10.1

func (x *SubmarinerNATDiscoveryRequest) GetUsingSrc() *IPPortPair

func (*SubmarinerNATDiscoveryRequest) ProtoMessage added in v0.10.1

func (*SubmarinerNATDiscoveryRequest) ProtoMessage()

func (*SubmarinerNATDiscoveryRequest) ProtoReflect added in v0.10.1

func (*SubmarinerNATDiscoveryRequest) Reset added in v0.10.1

func (x *SubmarinerNATDiscoveryRequest) Reset()

func (*SubmarinerNATDiscoveryRequest) String added in v0.10.1

type SubmarinerNATDiscoveryResponse added in v0.10.1

type SubmarinerNATDiscoveryResponse struct {
	RequestNumber      uint64           `protobuf:"varint,1,opt,name=request_number,json=requestNumber,proto3" json:"request_number,omitempty"`
	Response           ResponseType     `protobuf:"varint,2,opt,name=response,proto3,enum=ResponseType" json:"response,omitempty"`
	Sender             *EndpointDetails `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver           *EndpointDetails `protobuf:"bytes,4,opt,name=receiver,proto3" json:"receiver,omitempty"`
	SrcIpNatDetected   bool             `protobuf:"varint,5,opt,name=src_ip_nat_detected,json=srcIpNatDetected,proto3" json:"src_ip_nat_detected,omitempty"`
	SrcPortNatDetected bool             `protobuf:"varint,6,opt,name=src_port_nat_detected,json=srcPortNatDetected,proto3" json:"src_port_nat_detected,omitempty"`
	DstIpNatDetected   bool             `protobuf:"varint,7,opt,name=dst_ip_nat_detected,json=dstIpNatDetected,proto3" json:"dst_ip_nat_detected,omitempty"`
	// The received SRC IP / SRC port is reported, which will be useful for
	// diagnosing corner cases
	ReceivedSrc *IPPortPair `protobuf:"bytes,8,opt,name=received_src,json=receivedSrc,proto3" json:"received_src,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmarinerNATDiscoveryResponse) Descriptor deprecated added in v0.10.1

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

Deprecated: Use SubmarinerNATDiscoveryResponse.ProtoReflect.Descriptor instead.

func (*SubmarinerNATDiscoveryResponse) GetDstIpNatDetected added in v0.10.1

func (x *SubmarinerNATDiscoveryResponse) GetDstIpNatDetected() bool

func (*SubmarinerNATDiscoveryResponse) GetReceivedSrc added in v0.10.1

func (x *SubmarinerNATDiscoveryResponse) GetReceivedSrc() *IPPortPair

func (*SubmarinerNATDiscoveryResponse) GetReceiver added in v0.10.1

func (*SubmarinerNATDiscoveryResponse) GetReceiverEndpointID added in v0.10.1

func (x *SubmarinerNATDiscoveryResponse) GetReceiverEndpointID() string

func (*SubmarinerNATDiscoveryResponse) GetRequestNumber added in v0.10.1

func (x *SubmarinerNATDiscoveryResponse) GetRequestNumber() uint64

func (*SubmarinerNATDiscoveryResponse) GetResponse added in v0.10.1

func (*SubmarinerNATDiscoveryResponse) GetSender added in v0.10.1

func (*SubmarinerNATDiscoveryResponse) GetSenderEndpointID added in v0.10.1

func (x *SubmarinerNATDiscoveryResponse) GetSenderEndpointID() string

func (*SubmarinerNATDiscoveryResponse) GetSrcIpNatDetected added in v0.10.1

func (x *SubmarinerNATDiscoveryResponse) GetSrcIpNatDetected() bool

func (*SubmarinerNATDiscoveryResponse) GetSrcPortNatDetected added in v0.10.1

func (x *SubmarinerNATDiscoveryResponse) GetSrcPortNatDetected() bool

func (*SubmarinerNATDiscoveryResponse) ProtoMessage added in v0.10.1

func (*SubmarinerNATDiscoveryResponse) ProtoMessage()

func (*SubmarinerNATDiscoveryResponse) ProtoReflect added in v0.10.1

func (*SubmarinerNATDiscoveryResponse) Reset added in v0.10.1

func (x *SubmarinerNATDiscoveryResponse) Reset()

func (*SubmarinerNATDiscoveryResponse) String added in v0.10.1

Jump to

Keyboard shortcuts

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