provider

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 7

Documentation

Index

Constants

View Source
const Localhost = "localhost"

Variables

This section is empty.

Functions

func RegisterProvider

func RegisterProvider(name string, provider LBProvider) error

Types

type LBProvider

type LBProvider interface {
	ApplyConfig(lbConfig *config.LoadBalancerConfig) error
	GetName() string
	GetPublicEndpoints(configName string) ([]string, error)
	CleanupConfig(configName string) error
	Run(syncEndpointsQueue *utils.TaskQueue)
	Stop() error
	IsHealthy() bool
	ProcessCustomConfig(lbConfig *config.LoadBalancerConfig, customConfig string) error
	IsEndpointUpForDrain(*config.Endpoint) bool
	DrainEndpoint(*config.Endpoint) bool
	IsEndpointDrained(*config.Endpoint) bool
	RemoveEndpointFromDrain(ep *config.Endpoint)
	GetExistingConfigNames() (map[string]bool, error)
}

func GetProvider

func GetProvider(name string) LBProvider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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