status

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NewDefaultConditionBuilder is the default condition builder.
	NewDefaultConditionBuilder = condition.NewBuilder
	// NewDefaultEtcdMemberBuilder is the default etcd member builder.
	NewDefaultEtcdMemberBuilder = etcdmember.NewBuilder
	// Checks are the registered condition checks.
	ConditionChecks = []ConditionCheckFn{
		condition.AllMembersCheck,
		condition.ReadyCheck,
		condition.BackupReadyCheck,
	}
	// EtcdMemberChecks are the etcd member checks.
	EtcdMemberChecks = []EtcdMemberCheckFn{
		etcdmember.ReadyCheck,
	}
)
View Source
var TimeNow = time.Now

TimeNow is the function used to get the current time.

Functions

func NewChecker

func NewChecker(cl client.Client, config controllersconfig.EtcdCustodianController) *checker

NewChecker creates a new instance for checking the etcd status.

Types

type ConditionCheckFn

type ConditionCheckFn func(client.Client) condition.Checker

ConditionCheckFn is a type alias for a function which returns an implementation of `Check`.

type EtcdMemberCheckFn

EtcdMemberCheckFn is a type alias for a function which returns an implementation of `Check`.

Jump to

Keyboard shortcuts

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