rainbond: github.com/goodrain/rainbond/gateway/controller Index | Files | Directories

package controller

import "github.com/goodrain/rainbond/gateway/controller"

Index

Package Files

checker.go controller.go service.go util.go

func NewClientSet Uses

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

NewClientSet returns a new kubernetes clientSet

type GWController Uses

type GWController struct {
    GWS GWServicer

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

GWController -

func NewGWController Uses

func NewGWController(ctx context.Context, cfg *option.Config, mc metric.Collector) (*GWController, error)

NewGWController new Gateway controller

func (*GWController) Check Uses

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

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

func (*GWController) Close Uses

func (gwc *GWController) Close() error

Close stops Gateway

func (GWController) Name Uses

func (g GWController) Name() string

Name returns the healthcheck name

func (*GWController) Start Uses

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

Start starts Gateway

type GWServicer Uses

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

PathSynopsis
config
openresty
openresty/model
openresty/template
zeus

Package controller imports 21 packages (graph) and is imported by 1 packages. Updated 2019-07-07. Refresh now. Tools for package owners.