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
Click to show internal directories.
Click to hide internal directories.