proxy

package
v2.0.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	RegisterProxies(targets []*Target) error
	GetProxies(prefix string) map[string]*ServiceReverseProxy
	Shutdown(ctx context.Context)
}

type PortRange

type PortRange struct {
	From, To int32
}

type ReverseProxyContainer

type ReverseProxyContainer struct {
	ProxiesPortRange PortRange

	// map[kubeID + serviceID]*ServiceReverseProxy
	Proxies     map[string]*ServiceReverseProxy
	PortToProxy map[int32]*ServiceReverseProxy
	// contains filtered or unexported fields
}

func NewReverseProxyContainer

func NewReverseProxyContainer(proxiesPortRange PortRange, logger logrus.FieldLogger) *ReverseProxyContainer

func (*ReverseProxyContainer) GetProxies

func (p *ReverseProxyContainer) GetProxies(prefix string) map[string]*ServiceReverseProxy

func (*ReverseProxyContainer) RegisterProxies

func (p *ReverseProxyContainer) RegisterProxies(targets []*Target) error

func (*ReverseProxyContainer) Shutdown

func (p *ReverseProxyContainer) Shutdown(ctx context.Context)

type ServiceReverseProxy

type ServiceReverseProxy struct {
	TargetURL string
	// contains filtered or unexported fields
}

func NewServiceProxy

func NewServiceProxy(port int32, targetURL, selfLink, user, password string, logger logrus.FieldLogger) (*ServiceReverseProxy, error)

func (*ServiceReverseProxy) Port

func (sp *ServiceReverseProxy) Port() string

type Target

type Target struct{ ProxyID, TargetURL, SelfLink, User, Password string }

Jump to

Keyboard shortcuts

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