keepalived

package
v4.0.0-0.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDeploymentConfig

func GenerateDeploymentConfig(name string, options *ipfailover.IPFailoverConfigOptions, selector map[string]string) (*appsv1.DeploymentConfig, error)

GenerateDeploymentConfig generates an IP Failover deployment configuration.

Types

type KeepalivedPlugin

type KeepalivedPlugin struct {
	Name    string
	Factory kcmdutil.Factory
	Options *ipfailover.IPFailoverConfigOptions
}

KeepalivedPlugin is an IP Failover configurator plugin for keepalived sidecar.

func NewIPFailoverConfiguratorPlugin

func NewIPFailoverConfiguratorPlugin(name string, f kcmdutil.Factory, options *ipfailover.IPFailoverConfigOptions) (*KeepalivedPlugin, error)

NewIPFailoverConfiguratorPlugin creates a new IPFailoverConfigurator (keepalived) plugin instance.

func (*KeepalivedPlugin) Generate

func (p *KeepalivedPlugin) Generate() ([]runtime.Object, error)

Generate the config and services for this IP Failover configuration plugin.

func (*KeepalivedPlugin) GetDeploymentConfig

func (p *KeepalivedPlugin) GetDeploymentConfig() (*appsv1.DeploymentConfig, error)

func (*KeepalivedPlugin) GetNamespace

func (p *KeepalivedPlugin) GetNamespace() (string, error)

GetNamespace gets the namespace associated with this IP Failover configurator plugin.

func (*KeepalivedPlugin) GetSelector

func (p *KeepalivedPlugin) GetSelector() (map[string]string, error)

GetSelector gets the selector associated with this IP Failover configurator plugin.

func (*KeepalivedPlugin) GetWatchPort

func (p *KeepalivedPlugin) GetWatchPort() (int, error)

GetWatchPort gets the port to monitor for the IP Failover configuration.

Jump to

Keyboard shortcuts

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