keepalived

package
v0.0.0-...-ca7731e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keepalived

type Keepalived struct {
	Interface       string
	Vips            sets.String
	VirtualRouterID string
	Password        string
}

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

Jump to

Keyboard shortcuts

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