controller

package
Version: v5.2.2-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: LGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientSet

func NewClientSet(kubeconfig string) (*kubernetes.Clientset, error)

NewClientSet returns a new kubernetes clientSet

Types

type GWController

type GWController struct {
	GWS GWServicer

	EtcdCli *client.Client
	// contains filtered or unexported fields
}

GWController -

func NewGWController

func NewGWController(ctx context.Context, clientset kubernetes.Interface, cfg *option.Config, mc metric.Collector, node *cluster.NodeManager) (*GWController, error)

NewGWController new Gateway controller

func (*GWController) Check

func (g *GWController) Check(_ *http.Request) error

Check returns if the nginx healthz endpoint is returning ok (status code 200)

func (*GWController) Close

func (gwc *GWController) Close() error

Close stops Gateway

func (GWController) Name

func (g GWController) Name() string

Name returns the healthcheck name

func (*GWController) Start

func (gwc *GWController) Start(errCh chan error) error

Start starts Gateway

type GWServicer

type GWServicer interface {
	Start(errCh chan error) error
	Stop() error
	Check() error
	PersistConfig(conf *v1.Config) error
	UpdatePools(hpools []*v1.Pool, tpools []*v1.Pool) error
	WaitPluginReady()
}

GWServicer -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to