Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keepalived ¶
Keepalived represents all the elements needed for constructing a keepalived conf
type KeepalivedController ¶
type KeepalivedController struct {
// contains filtered or unexported fields
}
KeepalivedController is a object that manages the keepalived config
func NewKeepalivedController ¶
func NewKeepalivedController(nodeInterface string) KeepalivedController
NewKeepalivedController creates a new keepalived controller
func (*KeepalivedController) AddVIP ¶
func (k *KeepalivedController) AddVIP(vip string)
AddVIP adds a new VIP to the keepalived config and reload keepalived process
func (*KeepalivedController) Clean ¶
func (k *KeepalivedController) Clean()
Clean removes all VIPs created by keepalived.
func (*KeepalivedController) DeleteAllVIPs ¶
func (k *KeepalivedController) DeleteAllVIPs()
DeleteAllVIPs Delete all VIPs from the keepalived config and reload keepalived process
func (*KeepalivedController) DeleteVIP ¶
func (k *KeepalivedController) DeleteVIP(vip string)
DeleteVIP removes a VIP from the keepalived config and reload keepalived process
func (*KeepalivedController) ExitChannel ¶
func (k *KeepalivedController) ExitChannel() chan struct{}
ExitChannel returns the channel used to communicate keepalived process has exited
func (*KeepalivedController) Start ¶
func (k *KeepalivedController) Start()
Start starts a keepalived process in foreground. In case of any error it will terminate the execution with a fatal error