Documentation ¶
Index ¶
- type Instance
- type Manager
- func (sm *Manager) AutoDiscoverCIDRs() (serviceCIDR, podCIDR string, err error)
- func (sm *Manager) PrometheusCollector() []prometheus.Collector
- func (sm *Manager) Start() error
- func (sm *Manager) StartServicesLeaderElection(ctx context.Context, service *v1.Service, wg *sync.WaitGroup) error
- func (sm *Manager) TeardownEgress(podIP, vipIP, destinationPorts, namespace string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { // Kubernetes service mapping VIPs []string Port int32 UID string Type string // contains filtered or unexported fields }
Instance defines an instance of everything needed to manage vips
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager degines the manager of the load-balancing services
func (*Manager) AutoDiscoverCIDRs ¶ added in v0.5.5
func (*Manager) PrometheusCollector ¶
func (sm *Manager) PrometheusCollector() []prometheus.Collector
PrometheusCollector defines a service watch event counter.
func (*Manager) Start ¶
Start will begin the Manager, which will start services and watch the configmap
func (*Manager) StartServicesLeaderElection ¶ added in v0.5.5
func (sm *Manager) StartServicesLeaderElection(ctx context.Context, service *v1.Service, wg *sync.WaitGroup) error
The startServicesWatchForLeaderElection function will start a services watcher, the
func (*Manager) TeardownEgress ¶ added in v0.5.12
Click to show internal directories.
Click to hide internal directories.