dataplane

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PortLocation_name = map[int32]string{
		0: "PORT_LOCATION_UNSPECIFIED",
		1: "PORT_LOCATION_INTERNAL",
		2: "PORT_LOCATION_EXTERNAL",
		3: "PORT_LOCATION_CPU",
	}
	PortLocation_value = map[string]int32{
		"PORT_LOCATION_UNSPECIFIED": 0,
		"PORT_LOCATION_INTERNAL":    1,
		"PORT_LOCATION_EXTERNAL":    2,
		"PORT_LOCATION_CPU":         3,
	}
)

Enum value maps for PortLocation.

View Source
var (
	PacketAction_name = map[int32]string{
		0: "PACKET_ACTION_UNSPECIFIED",
		1: "PACKET_ACTION_DROP",
		2: "PACKET_ACTION_FORWARD",
	}
	PacketAction_value = map[string]int32{
		"PACKET_ACTION_UNSPECIFIED": 0,
		"PACKET_ACTION_DROP":        1,
		"PACKET_ACTION_FORWARD":     2,
	}
)

Enum value maps for PacketAction.

View Source
var File_proto_dataplane_dataplane_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GUE added in v0.4.0

type GUE struct {
	SrcIp   []byte `protobuf:"bytes,1,opt,name=src_ip,json=srcIp,proto3" json:"src_ip,omitempty"`
	DstIp   []byte `protobuf:"bytes,2,opt,name=dst_ip,json=dstIp,proto3" json:"dst_ip,omitempty"`
	DstPort uint32 `protobuf:"varint,3,opt,name=dst_port,json=dstPort,proto3" json:"dst_port,omitempty"`
	IsV6    bool   `protobuf:"varint,4,opt,name=is_v6,json=isV6,proto3" json:"is_v6,omitempty"`
	// contains filtered or unexported fields
}

func (*GUE) Descriptor deprecated added in v0.4.0

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

Deprecated: Use GUE.ProtoReflect.Descriptor instead.

func (*GUE) GetDstIp added in v0.4.0

func (x *GUE) GetDstIp() []byte

func (*GUE) GetDstPort added in v0.4.0

func (x *GUE) GetDstPort() uint32

func (*GUE) GetIsV6 added in v0.4.0

func (x *GUE) GetIsV6() bool

func (*GUE) GetSrcIp added in v0.4.0

func (x *GUE) GetSrcIp() []byte

func (*GUE) ProtoMessage added in v0.4.0

func (*GUE) ProtoMessage()

func (*GUE) ProtoReflect added in v0.4.0

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

func (*GUE) Reset added in v0.4.0

func (x *GUE) Reset()

func (*GUE) String added in v0.4.0

func (x *GUE) String() string

type NextHop

type NextHop struct {
	Interface *OCInterface `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
	NextHopIp string       `protobuf:"bytes,2,opt,name=next_hop_ip,json=nextHopIp,proto3" json:"next_hop_ip,omitempty"`
	// Types that are assignable to Encap:
	//
	//	*NextHop_Gue
	Encap isNextHop_Encap `protobuf_oneof:"encap"`
	// contains filtered or unexported fields
}

func (*NextHop) Descriptor deprecated

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

Deprecated: Use NextHop.ProtoReflect.Descriptor instead.

func (*NextHop) GetEncap added in v0.4.0

func (m *NextHop) GetEncap() isNextHop_Encap

func (*NextHop) GetGue added in v0.4.0

func (x *NextHop) GetGue() *GUE

func (*NextHop) GetInterface added in v0.4.0

func (x *NextHop) GetInterface() *OCInterface

func (*NextHop) GetNextHopIp added in v0.4.0

func (x *NextHop) GetNextHopIp() string

func (*NextHop) ProtoMessage

func (*NextHop) ProtoMessage()

func (*NextHop) ProtoReflect

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

func (*NextHop) Reset

func (x *NextHop) Reset()

func (*NextHop) String

func (x *NextHop) String() string

type NextHopList added in v0.4.0

type NextHopList struct {
	Hops    []*NextHop `protobuf:"bytes,1,rep,name=hops,proto3" json:"hops,omitempty"`
	Weights []uint64   `protobuf:"varint,2,rep,packed,name=weights,proto3" json:"weights,omitempty"`
	// contains filtered or unexported fields
}

func (*NextHopList) Descriptor deprecated added in v0.4.0

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

Deprecated: Use NextHopList.ProtoReflect.Descriptor instead.

func (*NextHopList) GetHops added in v0.4.0

func (x *NextHopList) GetHops() []*NextHop

func (*NextHopList) GetWeights added in v0.4.0

func (x *NextHopList) GetWeights() []uint64

func (*NextHopList) ProtoMessage added in v0.4.0

func (*NextHopList) ProtoMessage()

func (*NextHopList) ProtoReflect added in v0.4.0

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

func (*NextHopList) Reset added in v0.4.0

func (x *NextHopList) Reset()

func (*NextHopList) String added in v0.4.0

func (x *NextHopList) String() string

type NextHop_Gue added in v0.4.0

type NextHop_Gue struct {
	Gue *GUE `protobuf:"bytes,3,opt,name=gue,proto3,oneof"`
}

type OCInterface added in v0.4.0

type OCInterface struct {
	Interface    string `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
	Subinterface uint32 `protobuf:"varint,2,opt,name=subinterface,proto3" json:"subinterface,omitempty"`
	// contains filtered or unexported fields
}

func (*OCInterface) Descriptor deprecated added in v0.4.0

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

Deprecated: Use OCInterface.ProtoReflect.Descriptor instead.

func (*OCInterface) GetInterface added in v0.4.0

func (x *OCInterface) GetInterface() string

func (*OCInterface) GetSubinterface added in v0.4.0

func (x *OCInterface) GetSubinterface() uint32

func (*OCInterface) ProtoMessage added in v0.4.0

func (*OCInterface) ProtoMessage()

func (*OCInterface) ProtoReflect added in v0.4.0

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

func (*OCInterface) Reset added in v0.4.0

func (x *OCInterface) Reset()

func (*OCInterface) String added in v0.4.0

func (x *OCInterface) String() string

type PacketAction added in v0.4.0

type PacketAction int32
const (
	PacketAction_PACKET_ACTION_UNSPECIFIED PacketAction = 0
	PacketAction_PACKET_ACTION_DROP        PacketAction = 1
	PacketAction_PACKET_ACTION_FORWARD     PacketAction = 2
)

func (PacketAction) Descriptor added in v0.4.0

func (PacketAction) Enum added in v0.4.0

func (x PacketAction) Enum() *PacketAction

func (PacketAction) EnumDescriptor deprecated added in v0.4.0

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

Deprecated: Use PacketAction.Descriptor instead.

func (PacketAction) Number added in v0.4.0

func (PacketAction) String added in v0.4.0

func (x PacketAction) String() string

func (PacketAction) Type added in v0.4.0

type PortLocation added in v0.4.0

type PortLocation int32
const (
	PortLocation_PORT_LOCATION_UNSPECIFIED PortLocation = 0
	PortLocation_PORT_LOCATION_INTERNAL    PortLocation = 1
	PortLocation_PORT_LOCATION_EXTERNAL    PortLocation = 2
	PortLocation_PORT_LOCATION_CPU         PortLocation = 3
)

func (PortLocation) Descriptor added in v0.4.0

func (PortLocation) Enum added in v0.4.0

func (x PortLocation) Enum() *PortLocation

func (PortLocation) EnumDescriptor deprecated added in v0.4.0

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

Deprecated: Use PortLocation.Descriptor instead.

func (PortLocation) Number added in v0.4.0

func (PortLocation) String added in v0.4.0

func (x PortLocation) String() string

func (PortLocation) Type added in v0.4.0

type Route

type Route struct {
	Prefix *RoutePrefix `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Action PacketAction `protobuf:"varint,2,opt,name=action,proto3,enum=lemming.dataplane.PacketAction" json:"action,omitempty"`
	// Types that are assignable to Hop:
	//
	//	*Route_NextHops
	//	*Route_Interface
	Hop isRoute_Hop `protobuf_oneof:"hop"`
	// contains filtered or unexported fields
}

func (*Route) Descriptor deprecated

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

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetAction added in v0.4.0

func (x *Route) GetAction() PacketAction

func (*Route) GetHop added in v0.4.0

func (m *Route) GetHop() isRoute_Hop

func (*Route) GetInterface added in v0.4.0

func (x *Route) GetInterface() *OCInterface

func (*Route) GetNextHops

func (x *Route) GetNextHops() *NextHopList

func (*Route) GetPrefix

func (x *Route) GetPrefix() *RoutePrefix

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

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

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

type RoutePrefix added in v0.4.0

type RoutePrefix struct {
	Cidr            string `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
	NetworkInstance string `protobuf:"bytes,2,opt,name=network_instance,json=networkInstance,proto3" json:"network_instance,omitempty"`
	// contains filtered or unexported fields
}

func (*RoutePrefix) Descriptor deprecated added in v0.4.0

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

Deprecated: Use RoutePrefix.ProtoReflect.Descriptor instead.

func (*RoutePrefix) GetCidr added in v0.4.0

func (x *RoutePrefix) GetCidr() string

func (*RoutePrefix) GetNetworkInstance added in v0.4.0

func (x *RoutePrefix) GetNetworkInstance() string

func (*RoutePrefix) ProtoMessage added in v0.4.0

func (*RoutePrefix) ProtoMessage()

func (*RoutePrefix) ProtoReflect added in v0.4.0

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

func (*RoutePrefix) Reset added in v0.4.0

func (x *RoutePrefix) Reset()

func (*RoutePrefix) String added in v0.4.0

func (x *RoutePrefix) String() string

type Route_Interface added in v0.4.0

type Route_Interface struct {
	Interface *OCInterface `protobuf:"bytes,4,opt,name=interface,proto3,oneof"`
}

type Route_NextHops added in v0.4.0

type Route_NextHops struct {
	NextHops *NextHopList `protobuf:"bytes,3,opt,name=next_hops,json=nextHops,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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