Documentation ¶
Index ¶
- Constants
- func ValidateCmdOptions(options *IPFailoverConfigCmdOptions, c *Configurator) error
- func ValidateIPAddress(ip string) error
- func ValidateIPAddressRange(iprange string) error
- func ValidateVirtualIPs(vips string) error
- type Configurator
- type IPFailoverConfigCmdOptions
- type IPFailoverConfiguratorPlugin
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>" // DefaultInterface is the default network interface. DefaultInterface = "eth0" )
Variables ¶
This section is empty.
Functions ¶
func ValidateCmdOptions ¶
func ValidateCmdOptions(options *IPFailoverConfigCmdOptions, c *Configurator) error
ValidateCmdOptions validates command line operations.
func ValidateIPAddress ¶
ValidateIPAddress validates IP address.
func ValidateIPAddressRange ¶
ValidateIPAddressRange validates an IP address range or single IP address.
func ValidateVirtualIPs ¶
ValidateVirtualIPs validates virtual IP range/addresses.
Types ¶
type Configurator ¶
type Configurator struct { Name string Plugin IPFailoverConfiguratorPlugin Writer io.Writer }
func NewConfigurator ¶
func NewConfigurator(name string, plugin IPFailoverConfiguratorPlugin, out io.Writer) *Configurator
func (*Configurator) Create ¶
func (c *Configurator) Create() error
type IPFailoverConfigCmdOptions ¶
type IPFailoverConfigCmdOptions struct { Type string ImageTemplate variable.ImageTemplate Credentials string ServicePort int Selector string Create bool ServiceAccount string // Failover options. VirtualIPs string NetworkInterface string WatchPort int Replicas int }
IPFailoverConfigCmdOptions are options supported by the IP Failover admin command.
Click to show internal directories.
Click to hide internal directories.