proxy

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller syncs Cluster and GlobalResource.

func NewController

func NewController(restConfig *restclient.Config, restMapper meta.RESTMapper,
	kubeFactory informers.SharedInformerFactory, karmadaFactory informerfactory.SharedInformerFactory,
	minRequestTimeout time.Duration) (*Controller, error)

NewController create a controller for proxy

func (*Controller) Connect

func (ctl *Controller) Connect(ctx context.Context, proxyPath string, responder rest.Responder) (http.Handler, error)

Connect proxy and dispatch handlers

func (*Controller) Start

func (ctl *Controller) Start(stopCh <-chan struct{})

Start run the proxy controller

func (*Controller) Stop

func (ctl *Controller) Stop()

Stop shutdown cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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