loadbalancer

package
v0.0.0-...-215afb5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderIdentifierName = "etcdcluster.etcd.tkestack.io/loadbalancer-provider-name"

ProviderIdentifierName defines the load balancer provider used to expose etcd cluster access

Variables

This section is empty.

Functions

func RegisterLoadBalancerProvider

func RegisterLoadBalancerProvider(name string, provider Factory)

RegisterLoadBalancerProvider register a loadbalancer provider, the provider is a factory

Types

type Factory

type Factory func() (Provider, error)

Factory defines loadbalancer provider factory

type Provider

type Provider interface {
	ApplyTo(annotations map[string]string, service *v1.Service) error
	NeedUpdate(annotations map[string]string, service *v1.Service) bool
}

Provider define loadbalancer provider interface

func GetLoadBalancerProvider

func GetLoadBalancerProvider(name string) (Provider, error)

GetLoadBalancerProvider return the specified loadbalancer provider

Directories

Path Synopsis
tke

Jump to

Keyboard shortcuts

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