Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseRouteAttrs ¶ added in v0.11.0
func BaseRouteAttrs(p *config.PolicyConfig) model.RouteAttrs
BaseRouteAttrs returns the attributes from the announce block: the base prepend and communities carried by every announcement of the VIP.
func RouteAttrsFor ¶ added in v0.11.0
func RouteAttrsFor(p *config.PolicyConfig, state model.VIPState) model.RouteAttrs
RouteAttrsFor returns the BGP attributes to originate the VIP with in the given state:
- announced: the announce block (base prepend + communities)
- pessimized: base prepend + lower_priority prepend, and the union of both community lists, so a degraded node never outranks a healthy node with a larger base prepend
- withdrawn: zero value (no route)
Types ¶
type BGPNotifier ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetVIPStatuses ¶
func (*Manager) OnCheckResult ¶
func (*Manager) OnHealthTransition ¶
func (m *Manager) OnHealthTransition(t checks.HealthTransition)
Click to show internal directories.
Click to hide internal directories.