tcpproxy

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTCPProxyFactory

func CreateTCPProxyFactory(conf map[string]interface{}) (api.NetworkFilterChainFactory, error)

func ParseTCPProxy

func ParseTCPProxy(cfg map[string]interface{}) (*v2.TCPProxy, error)

ParseTCPProxy

Types

type DownstreamCallbacks

type DownstreamCallbacks interface {
	api.ConnectionEventListener
}

DownstreamCallbacks for downstream's callbacks

type IpRangeList

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

func (*IpRangeList) Contains

func (ipList *IpRangeList) Contains(address net.Addr) bool

type LbContext

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

LbContext is a types.LoadBalancerContext implementation

func (*LbContext) DownstreamCluster added in v0.11.0

func (c *LbContext) DownstreamCluster() types.ClusterInfo

func (*LbContext) DownstreamConnection

func (c *LbContext) DownstreamConnection() net.Conn

func (*LbContext) DownstreamContext

func (c *LbContext) DownstreamContext() context.Context

func (*LbContext) DownstreamHeaders

func (c *LbContext) DownstreamHeaders() api.HeaderMap

TCP Proxy have no header

func (*LbContext) MetadataMatchCriteria

func (c *LbContext) MetadataMatchCriteria() api.MetadataMatchCriteria

type PortRange

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

type PortRangeList

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

func ParsePortRangeList

func ParsePortRangeList(ports string) PortRangeList

func (*PortRangeList) Contains

func (pr *PortRangeList) Contains(address net.Addr) bool

type Proxy

type Proxy interface {
	api.ReadFilter

	ReadDisableUpstream(disable bool)

	ReadDisableDownstream(disable bool)
}

Proxy

func NewProxy

func NewProxy(ctx context.Context, config *v2.TCPProxy) Proxy

type ProxyConfig

type ProxyConfig interface {
	GetRouteFromEntries(connection api.Connection) string
}

ProxyConfig

func NewProxyConfig

func NewProxyConfig(config *v2.TCPProxy) ProxyConfig

type UpstreamCallbacks

type UpstreamCallbacks interface {
	api.ReadFilter
	api.ConnectionEventListener
}

UpstreamCallbacks for upstream's callbacks

type UpstreamFailureReason

type UpstreamFailureReason string

UpstreamFailureReason used to define Upstream Failure Reason

const (
	ConnectFailed         UpstreamFailureReason = "ConnectFailed"
	NoHealthyUpstream     UpstreamFailureReason = "NoHealthyUpstream"
	ResourceLimitExceeded UpstreamFailureReason = "ResourceLimitExceeded"
	NoRoute               UpstreamFailureReason = "NoRoute"
)

Upstream Failure Reason const

Jump to

Keyboard shortcuts

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