ipfailover

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultName is the default IP Failover resource name.
	DefaultName = "ipfailover"

	// DefaultType is the default IP Failover type.
	DefaultType = "keepalived"

	// DefaultServicePort is the default service port.
	DefaultServicePort = 1985

	// DefaultWatchPort is the default IP Failover watched port number.
	DefaultWatchPort = 80

	// DefaultSelector is the default resource selector.
	DefaultSelector = "ipfailover=<name>"

	// DefaultIptablesChain is the default iptables chain on which to add
	// a rule that accesses 224.0.0.18 (if none exists).
	DefaultIptablesChain = "INPUT"

	// DefaultInterface is the default network interface.
	DefaultInterface = "eth0"
)

Variables

This section is empty.

Functions

func ValidateCmdOptions

func ValidateCmdOptions(options *IPFailoverConfigCmdOptions) error

ValidateCmdOptions validates command line operations.

func ValidateIPAddress

func ValidateIPAddress(ip string) error

ValidateIPAddress validates IP address.

func ValidateIPAddressRange

func ValidateIPAddressRange(iprange string) error

ValidateIPAddressRange validates an IP address range or single IP address.

func ValidateVirtualIPs

func ValidateVirtualIPs(vips string) error

ValidateVirtualIPs validates virtual IP range/addresses.

Types

type IPFailoverConfigCmdOptions

type IPFailoverConfigCmdOptions struct {
	Action configcmd.BulkAction

	Type           string
	ImageTemplate  variable.ImageTemplate
	Credentials    string
	ServicePort    int
	Selector       string
	Create         bool
	ServiceAccount string

	//  Failover options.
	VirtualIPs       string
	IptablesChain    string
	NetworkInterface string
	WatchPort        int
	VRRPIDOffset     int
	Replicas         int32
}

IPFailoverConfigCmdOptions are options supported by the IP Failover admin command.

type IPFailoverConfiguratorPlugin

type IPFailoverConfiguratorPlugin interface {
	Generate() (*kapi.List, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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