controller

package
v5.0.1-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: LGPL-3.0 Imports: 20 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, cfg *option.Config, mc metric.Collector) (*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)
	Stop() error
	Check() error
	PersistConfig(conf *v1.Config) error
	UpdatePools(hpools []*v1.Pool, tpools []*v1.Pool) error
	WaitPluginReady()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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