lbprovider

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

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 HAProxyProvider

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

func (*HAProxyProvider) ApplyConfig

func (lbc *HAProxyProvider) ApplyConfig(lbConfig *lbconfig.LoadBalancerConfig) error

func (*HAProxyProvider) GetName

func (lbc *HAProxyProvider) GetName() string

func (*HAProxyProvider) GetPublicEndpoint

func (lbc *HAProxyProvider) GetPublicEndpoint(lbName string) string

type LBProvider

type LBProvider interface {
	ApplyConfig(lbConfig *lbconfig.LoadBalancerConfig) error
	GetName() string
	GetPublicEndpoints(configName string) []string
	CleanupConfig(configName string) error
	Run(syncEndpointsQueue *utils.TaskQueue)
	Stop() error
	IsHealthy() bool
}

func GetProvider

func GetProvider(name string) LBProvider

type PublicEndpoint

type PublicEndpoint struct {
	IPAddress string
	Port      int
}

type RancherLBProvider

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

func (*RancherLBProvider) ApplyConfig

func (lbp *RancherLBProvider) ApplyConfig(lbConfig *lbconfig.LoadBalancerConfig) error

func (*RancherLBProvider) CleanupConfig

func (lbp *RancherLBProvider) CleanupConfig(name string) error

func (*RancherLBProvider) GetName

func (lbp *RancherLBProvider) GetName() string

func (*RancherLBProvider) GetPublicEndpoints

func (lbp *RancherLBProvider) GetPublicEndpoints(configName string) []string

func (*RancherLBProvider) IsHealthy

func (lbp *RancherLBProvider) IsHealthy() bool

func (*RancherLBProvider) Run

func (lbp *RancherLBProvider) Run(syncEndpointsQueue *utils.TaskQueue)

func (*RancherLBProvider) Stop

func (lbp *RancherLBProvider) Stop() error

Jump to

Keyboard shortcuts

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