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(option NewControllerOption) (*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
type NewControllerOption ¶ added in v1.4.0
type NewControllerOption struct { RestConfig *restclient.Config RestMapper meta.RESTMapper KubeFactory informers.SharedInformerFactory KarmadaFactory informerfactory.SharedInformerFactory MinRequestTimeout time.Duration OutOfTreeRegistry pluginruntime.Registry }
NewControllerOption is the Option for NewController().
Click to show internal directories.
Click to hide internal directories.