Documentation ¶
Index ¶
- type Hasher
- type LBEvent
- type LBEventType
- type LoadBalancer
- func (lb *LoadBalancer) Close()
- func (lb *LoadBalancer) EndpointTrigger()
- func (lb *LoadBalancer) GetCache() cache.SnapshotCache
- func (lb *LoadBalancer) GetCacheVersion() int32
- func (lb *LoadBalancer) GetUpstreams() map[string]kube.Service
- func (lb *LoadBalancer) HandleEvents()
- func (lb *LoadBalancer) InitializeUpstream(serviceList *corev1.ServiceList)
- func (lb *LoadBalancer) SnapshotRunner()
- func (lb *LoadBalancer) SvcTrigger(eventType LBEventType, svc *corev1.Service)
- func (lb *LoadBalancer) Trigger(evt LBEvent)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LBEvent ¶
type LBEvent struct { Svc kube.Service EventType LBEventType }
LBEvent is the event triggered by kubernetes service changes
type LBEventType ¶
type LBEventType int32
LBEventType is the type of event impacting the LB
const ( //ADDED represents a service create event ADDED LBEventType = iota //UPDATED represents a service updated event UPDATED //DELETED represents a service updated event DELETED )
type LoadBalancer ¶
LoadBalancer represents the current state of upstreams for a load balancer
func NewLB ¶
func NewLB(nodeID string, envoyConfig config.EnvoyConfig, snapshotCache cache.SnapshotCache, autoRefreshConn bool) *LoadBalancer
func (*LoadBalancer) Close ¶
func (lb *LoadBalancer) Close()
func (*LoadBalancer) EndpointTrigger ¶ added in v0.1.11
func (lb *LoadBalancer) EndpointTrigger()
func (*LoadBalancer) GetCache ¶ added in v0.1.13
func (lb *LoadBalancer) GetCache() cache.SnapshotCache
func (*LoadBalancer) GetCacheVersion ¶ added in v0.1.13
func (lb *LoadBalancer) GetCacheVersion() int32
func (*LoadBalancer) GetUpstreams ¶ added in v0.1.13
func (lb *LoadBalancer) GetUpstreams() map[string]kube.Service
func (*LoadBalancer) HandleEvents ¶
func (lb *LoadBalancer) HandleEvents()
func (*LoadBalancer) InitializeUpstream ¶ added in v0.1.13
func (lb *LoadBalancer) InitializeUpstream(serviceList *corev1.ServiceList)
func (*LoadBalancer) SnapshotRunner ¶ added in v0.1.10
func (lb *LoadBalancer) SnapshotRunner()
func (*LoadBalancer) SvcTrigger ¶
func (lb *LoadBalancer) SvcTrigger(eventType LBEventType, svc *corev1.Service)
func (*LoadBalancer) Trigger ¶
func (lb *LoadBalancer) Trigger(evt LBEvent)
Click to show internal directories.
Click to hide internal directories.