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 ¶
ConditionCheckFn is a type alias for a function which returns an implementation of `Check`.
type EtcdMemberCheckFn ¶
type EtcdMemberCheckFn func(client.Client, logr.Logger, controllersconfig.EtcdCustodianController) etcdmember.Checker
EtcdMemberCheckFn is a type alias for a function which returns an implementation of `Check`.
Click to show internal directories.
Click to hide internal directories.