app

package
v0.0.0-...-b0416ff Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndPoint

type EndPoint struct {
	IP   string
	Port uint16
}

EndPoint is

type HA

type HA struct {
	KubeConfigFile string // the path of the apiserver ha proxy file

	HAConfigFile string // the path of haconfig file

	InitApiServer string // init api server

	ServiceSubnet string // kubernetes cluster subnet

	ProxyMode string // proxy mod
	// contains filtered or unexported fields
}

func (*HA) Run

func (ha *HA) Run() error

func (*HA) ServiceSubnetFirstAddr

func (ha *HA) ServiceSubnetFirstAddr() (string, error)

*

  • 根据service subnet生成第一个IP。

type HealthzMonitor

type HealthzMonitor struct {
}

type Service

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

func BuildService

func BuildService() Service

func (*Service) CreateRealServer

func (l *Service) CreateRealServer(vs, rs string) error

func (*Service) CreateVirtualServer

func (l *Service) CreateVirtualServer(vs string) error

func (*Service) DeleteRealServer

func (l *Service) DeleteRealServer(vs, rs string) error

func (*Service) DeleteVirtualServer

func (l *Service) DeleteVirtualServer(vs string) error

func (*Service) GetRealServer

func (l *Service) GetRealServer(vsHost, rsHost string) (rs *EndPoint, weight int)

func (*Service) IsVirtualServerAvailable

func (l *Service) IsVirtualServerAvailable(vs string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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