linux_punt

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PortBased_L4Protocol_name = map[int32]string{
		0:  "UNDEFINED_L4",
		6:  "TCP",
		17: "UDP",
	}
	PortBased_L4Protocol_value = map[string]int32{
		"UNDEFINED_L4": 0,
		"TCP":          6,
		"UDP":          17,
	}
)

Enum value maps for PortBased_L4Protocol.

View Source
var (
	PortBased_L3Protocol_name = map[int32]string{
		0: "UNDEFINED_L3",
		1: "IPV4",
		2: "IPV6",
		3: "ALL",
	}
	PortBased_L3Protocol_value = map[string]int32{
		"UNDEFINED_L3": 0,
		"IPV4":         1,
		"IPV6":         2,
		"ALL":          3,
	}
)

Enum value maps for PortBased_L3Protocol.

View Source
var File_ligato_linux_punt_punt_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PortBased

type PortBased struct {
	L4Protocol PortBased_L4Protocol `` /* 136-byte string literal not displayed */
	L3Protocol PortBased_L3Protocol `` /* 136-byte string literal not displayed */
	Port       uint32               `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

Define network socket type

func (*PortBased) Descriptor deprecated

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

Deprecated: Use PortBased.ProtoReflect.Descriptor instead.

func (*PortBased) GetL3Protocol

func (x *PortBased) GetL3Protocol() PortBased_L3Protocol

func (*PortBased) GetL4Protocol

func (x *PortBased) GetL4Protocol() PortBased_L4Protocol

func (*PortBased) GetPort

func (x *PortBased) GetPort() uint32

func (*PortBased) ProtoMessage

func (*PortBased) ProtoMessage()

func (*PortBased) ProtoReflect added in v3.2.0

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

func (*PortBased) Reset

func (x *PortBased) Reset()

func (*PortBased) String

func (x *PortBased) String() string

type PortBased_L3Protocol

type PortBased_L3Protocol int32
const (
	PortBased_UNDEFINED_L3 PortBased_L3Protocol = 0
	PortBased_IPV4         PortBased_L3Protocol = 1
	PortBased_IPV6         PortBased_L3Protocol = 2
	PortBased_ALL          PortBased_L3Protocol = 3
)

func (PortBased_L3Protocol) Descriptor added in v3.2.0

func (PortBased_L3Protocol) Enum added in v3.2.0

func (PortBased_L3Protocol) EnumDescriptor deprecated

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

Deprecated: Use PortBased_L3Protocol.Descriptor instead.

func (PortBased_L3Protocol) Number added in v3.2.0

func (PortBased_L3Protocol) String

func (x PortBased_L3Protocol) String() string

func (PortBased_L3Protocol) Type added in v3.2.0

type PortBased_L4Protocol

type PortBased_L4Protocol int32
const (
	PortBased_UNDEFINED_L4 PortBased_L4Protocol = 0
	PortBased_TCP          PortBased_L4Protocol = 6
	PortBased_UDP          PortBased_L4Protocol = 17
)

func (PortBased_L4Protocol) Descriptor added in v3.2.0

func (PortBased_L4Protocol) Enum added in v3.2.0

func (PortBased_L4Protocol) EnumDescriptor deprecated

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

Deprecated: Use PortBased_L4Protocol.Descriptor instead.

func (PortBased_L4Protocol) Number added in v3.2.0

func (PortBased_L4Protocol) String

func (x PortBased_L4Protocol) String() string

func (PortBased_L4Protocol) Type added in v3.2.0

type Proxy

type Proxy struct {

	// Types that are assignable to Rx:
	//	*Proxy_RxPort
	//	*Proxy_RxSocket
	Rx isProxy_Rx `protobuf_oneof:"rx"`
	// Types that are assignable to Tx:
	//	*Proxy_TxPort
	//	*Proxy_TxSocket
	Tx isProxy_Tx `protobuf_oneof:"tx"`
	// contains filtered or unexported fields
}

Proxy allows to listen on network socket or unix domain socket, and resend to another network/unix domain socket

func (*Proxy) Descriptor deprecated

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

Deprecated: Use Proxy.ProtoReflect.Descriptor instead.

func (*Proxy) GetRx

func (m *Proxy) GetRx() isProxy_Rx

func (*Proxy) GetRxPort

func (x *Proxy) GetRxPort() *PortBased

func (*Proxy) GetRxSocket

func (x *Proxy) GetRxSocket() *SocketBased

func (*Proxy) GetTx

func (m *Proxy) GetTx() isProxy_Tx

func (*Proxy) GetTxPort

func (x *Proxy) GetTxPort() *PortBased

func (*Proxy) GetTxSocket

func (x *Proxy) GetTxSocket() *SocketBased

func (*Proxy) ProtoMessage

func (*Proxy) ProtoMessage()

func (*Proxy) ProtoReflect added in v3.2.0

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

func (*Proxy) Reset

func (x *Proxy) Reset()

func (*Proxy) String

func (x *Proxy) String() string

type Proxy_RxPort

type Proxy_RxPort struct {
	RxPort *PortBased `protobuf:"bytes,1,opt,name=rx_port,json=rxPort,proto3,oneof"`
}

type Proxy_RxSocket

type Proxy_RxSocket struct {
	RxSocket *SocketBased `protobuf:"bytes,2,opt,name=rx_socket,json=rxSocket,proto3,oneof"`
}

type Proxy_TxPort

type Proxy_TxPort struct {
	TxPort *PortBased `protobuf:"bytes,3,opt,name=tx_port,json=txPort,proto3,oneof"`
}

type Proxy_TxSocket

type Proxy_TxSocket struct {
	TxSocket *SocketBased `protobuf:"bytes,4,opt,name=tx_socket,json=txSocket,proto3,oneof"`
}

type SocketBased

type SocketBased struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Define unix domain socket type for IPC

func (*SocketBased) Descriptor deprecated

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

Deprecated: Use SocketBased.ProtoReflect.Descriptor instead.

func (*SocketBased) GetPath

func (x *SocketBased) GetPath() string

func (*SocketBased) ProtoMessage

func (*SocketBased) ProtoMessage()

func (*SocketBased) ProtoReflect added in v3.2.0

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

func (*SocketBased) Reset

func (x *SocketBased) Reset()

func (*SocketBased) String

func (x *SocketBased) String() string

Jump to

Keyboard shortcuts

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