proxy

package
v2.2.9-ent3-rc2+incomp... Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteService

type RemoteService struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(localConfig *rest.Config, cluster *v3.Cluster, clusterLister v3.ClusterLister, factory dialer.Factory) (*RemoteService, error)

func NewLocal

func NewLocal(localConfig *rest.Config, cluster *v3.Cluster) (*RemoteService, error)

func NewRemote

func NewRemote(cluster *v3.Cluster, clusterLister v3.ClusterLister, factory dialer.Factory) (*RemoteService, error)

func (*RemoteService) Close

func (r *RemoteService) Close()

func (*RemoteService) Cluster

func (r *RemoteService) Cluster() *v3.Cluster

func (*RemoteService) Handler

func (r *RemoteService) Handler() http.Handler

func (*RemoteService) ServeHTTP

func (r *RemoteService) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type SimpleProxy

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

func NewSimpleProxy

func NewSimpleProxy(host string, caData []byte, overrideHostHeader bool) (*SimpleProxy, error)

func (*SimpleProxy) ServeHTTP

func (s *SimpleProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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