Documentation ¶
Index ¶
- Constants
- func RegisterProvider(name string, provider LBProvider) error
- type HAProxyProvider
- type LBProvider
- type PublicEndpoint
- type RancherLBProvider
- func (lbp *RancherLBProvider) ApplyConfig(lbConfig *lbconfig.LoadBalancerConfig) error
- func (lbp *RancherLBProvider) CleanupConfig(name string) error
- func (lbp *RancherLBProvider) GetName() string
- func (lbp *RancherLBProvider) GetPublicEndpoints(configName string) []string
- func (lbp *RancherLBProvider) IsHealthy() bool
- func (lbp *RancherLBProvider) Run(syncEndpointsQueue *utils.TaskQueue)
- func (lbp *RancherLBProvider) Stop() error
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 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
Click to show internal directories.
Click to hide internal directories.