Documentation ¶
Index ¶
- func GenerateDeploymentConfig(name string, options *ipfailover.IPFailoverConfigCmdOptions, ...) (*dapi.DeploymentConfig, error)
- type KeepalivedPlugin
- func (p *KeepalivedPlugin) Create(out io.Writer) error
- func (p *KeepalivedPlugin) Generate() (*kapi.List, error)
- func (p *KeepalivedPlugin) GetDeploymentConfig() (*deployapi.DeploymentConfig, error)
- func (p *KeepalivedPlugin) GetNamespace() (string, error)
- func (p *KeepalivedPlugin) GetSelector() (map[string]string, error)
- func (p *KeepalivedPlugin) GetWatchPort() (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDeploymentConfig ¶
func GenerateDeploymentConfig(name string, options *ipfailover.IPFailoverConfigCmdOptions, selector map[string]string) (*dapi.DeploymentConfig, error)
Generate the IP Failover deployment configuration.
Types ¶
type KeepalivedPlugin ¶
type KeepalivedPlugin struct { Name string Factory *clientcmd.Factory Options *ipfailover.IPFailoverConfigCmdOptions }
IP Failover configurator plugin for keepalived sidecar.
func NewIPFailoverConfiguratorPlugin ¶
func NewIPFailoverConfiguratorPlugin(name string, f *clientcmd.Factory, options *ipfailover.IPFailoverConfigCmdOptions) (*KeepalivedPlugin, error)
Create a new IPFailoverConfigurator (keepalived) plugin instance.
func (*KeepalivedPlugin) Create ¶
func (p *KeepalivedPlugin) Create(out io.Writer) error
Create the config and services associated with this IP Failover configuration.
func (*KeepalivedPlugin) Generate ¶
func (p *KeepalivedPlugin) Generate() (*kapi.List, error)
Generate the config and services for this IP Failover configuration plugin.
func (*KeepalivedPlugin) GetDeploymentConfig ¶
func (p *KeepalivedPlugin) GetDeploymentConfig() (*deployapi.DeploymentConfig, error)
Get the deployment config associated with this IP Failover configurator plugin.
func (*KeepalivedPlugin) GetNamespace ¶
func (p *KeepalivedPlugin) GetNamespace() (string, error)
Get the namespace associated with this IP Failover configurator plugin.
func (*KeepalivedPlugin) GetSelector ¶
func (p *KeepalivedPlugin) GetSelector() (map[string]string, error)
Get the selector associated with this IP Failover configurator plugin.
func (*KeepalivedPlugin) GetWatchPort ¶
func (p *KeepalivedPlugin) GetWatchPort() (int, error)
Get the port to monitor for the IP Failover configuration.
Click to show internal directories.
Click to hide internal directories.