highavailability

package
v0.7.4-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.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 Ha

type Ha struct {
	// contains filtered or unexported fields
}

func GetHa

func GetHa() *Ha

func NewHa

func NewHa(logger logr.Logger) *Ha

func (*Ha) DecreaseClusterReplicas

func (ha *Ha) DecreaseClusterReplicas(cluster *dcs3.Cluster)

func (*Ha) DeleteCurrentMember

func (ha *Ha) DeleteCurrentMember(ctx context.Context, cluster *dcs3.Cluster) error

func (*Ha) HasOtherHealthyMember

func (ha *Ha) HasOtherHealthyMember(cluster *dcs3.Cluster) bool

func (*Ha) IsHealthiestMember

func (ha *Ha) IsHealthiestMember(ctx context.Context, cluster *dcs3.Cluster) bool

func (*Ha) IsPodReady

func (ha *Ha) IsPodReady() (bool, error)

IsPodReady checks if pod is ready, it can successfully resolve domain

func (*Ha) RunCycle

func (ha *Ha) RunCycle()

func (*Ha) ShutdownWithWait

func (ha *Ha) ShutdownWithWait()

func (*Ha) Start

func (ha *Ha) Start()

Jump to

Keyboard shortcuts

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