linux_punt

package
v2.2.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PortBased_L3Protocol_name = map[int32]string{
	0: "UNDEFINED_L3",
	1: "IPv4",
	2: "IPv6",
	3: "ALL",
}
View Source
var PortBased_L3Protocol_value = map[string]int32{
	"UNDEFINED_L3": 0,
	"IPv4":         1,
	"IPv6":         2,
	"ALL":          3,
}
View Source
var PortBased_L4Protocol_name = map[int32]string{
	0:  "UNDEFINED_L4",
	6:  "TCP",
	17: "UDP",
}
View Source
var PortBased_L4Protocol_value = map[string]int32{
	"UNDEFINED_L4": 0,
	"TCP":          6,
	"UDP":          17,
}

Functions

This section is empty.

Types

type PortBased

type PortBased struct {
	L4Protocol           PortBased_L4Protocol `` /* 129-byte string literal not displayed */
	L3Protocol           PortBased_L3Protocol `` /* 129-byte string literal not displayed */
	Port                 uint32               `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Define network socket type

func (*PortBased) Descriptor

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

func (*PortBased) GetL3Protocol

func (m *PortBased) GetL3Protocol() PortBased_L3Protocol

func (*PortBased) GetL4Protocol

func (m *PortBased) GetL4Protocol() PortBased_L4Protocol

func (*PortBased) GetPort

func (m *PortBased) GetPort() uint32

func (*PortBased) ProtoMessage

func (*PortBased) ProtoMessage()

func (*PortBased) Reset

func (m *PortBased) Reset()

func (*PortBased) String

func (m *PortBased) String() string

func (*PortBased) XXX_DiscardUnknown

func (m *PortBased) XXX_DiscardUnknown()

func (*PortBased) XXX_Marshal

func (m *PortBased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PortBased) XXX_Merge

func (m *PortBased) XXX_Merge(src proto.Message)

func (*PortBased) XXX_MessageName

func (*PortBased) XXX_MessageName() string

func (*PortBased) XXX_Size

func (m *PortBased) XXX_Size() int

func (*PortBased) XXX_Unmarshal

func (m *PortBased) XXX_Unmarshal(b []byte) error

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

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

func (PortBased_L3Protocol) String

func (x PortBased_L3Protocol) String() string

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

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

func (PortBased_L4Protocol) String

func (x PortBased_L4Protocol) String() string

type Proxy

type Proxy struct {
	// Types that are valid to be assigned to Rx:
	//	*Proxy_RxPort
	//	*Proxy_RxSocket
	Rx isProxy_Rx `protobuf_oneof:"rx"`
	// Types that are valid to be assigned to Tx:
	//	*Proxy_TxPort
	//	*Proxy_TxSocket
	Tx                   isProxy_Tx `protobuf_oneof:"tx"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

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

func (*Proxy) Descriptor

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

func (*Proxy) GetRx

func (m *Proxy) GetRx() isProxy_Rx

func (*Proxy) GetRxPort

func (m *Proxy) GetRxPort() *PortBased

func (*Proxy) GetRxSocket

func (m *Proxy) GetRxSocket() *SocketBased

func (*Proxy) GetTx

func (m *Proxy) GetTx() isProxy_Tx

func (*Proxy) GetTxPort

func (m *Proxy) GetTxPort() *PortBased

func (*Proxy) GetTxSocket

func (m *Proxy) GetTxSocket() *SocketBased

func (*Proxy) ProtoMessage

func (*Proxy) ProtoMessage()

func (*Proxy) Reset

func (m *Proxy) Reset()

func (*Proxy) String

func (m *Proxy) String() string

func (*Proxy) XXX_DiscardUnknown

func (m *Proxy) XXX_DiscardUnknown()

func (*Proxy) XXX_Marshal

func (m *Proxy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proxy) XXX_Merge

func (m *Proxy) XXX_Merge(src proto.Message)

func (*Proxy) XXX_MessageName

func (*Proxy) XXX_MessageName() string

func (*Proxy) XXX_OneofFuncs

func (*Proxy) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Proxy) XXX_Size

func (m *Proxy) XXX_Size() int

func (*Proxy) XXX_Unmarshal

func (m *Proxy) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Define unix domain socket type for IPC

func (*SocketBased) Descriptor

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

func (*SocketBased) GetPath

func (m *SocketBased) GetPath() string

func (*SocketBased) ProtoMessage

func (*SocketBased) ProtoMessage()

func (*SocketBased) Reset

func (m *SocketBased) Reset()

func (*SocketBased) String

func (m *SocketBased) String() string

func (*SocketBased) XXX_DiscardUnknown

func (m *SocketBased) XXX_DiscardUnknown()

func (*SocketBased) XXX_Marshal

func (m *SocketBased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SocketBased) XXX_Merge

func (m *SocketBased) XXX_Merge(src proto.Message)

func (*SocketBased) XXX_MessageName

func (*SocketBased) XXX_MessageName() string

func (*SocketBased) XXX_Size

func (m *SocketBased) XXX_Size() int

func (*SocketBased) XXX_Unmarshal

func (m *SocketBased) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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