Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BackupSucceeded is a constant that means that etcd backup has been successfully taken BackupSucceeded string = "BackupSucceeded" // BackupFailed is a constant that means that etcd backup has failed BackupFailed string = "BackupFailed" // Unknown is a constant that means that the etcd backup status is currently not known Unknown string = "Unknown" // NotChecked is a constant that means that the etcd backup status has not been updated or rechecked NotChecked string = "NotChecked" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { WithOldConditions(conditions []druidv1alpha1.Condition) Builder WithResults(result []Result) Builder WithNowFunc(now func() metav1.Time) Builder Build(replicas int32) []druidv1alpha1.Condition }
Builder is an interface for building conditions.
type Checker ¶
type Checker interface {
Check(ctx context.Context, etcd druidv1alpha1.Etcd) Result
}
Checker is an interface to check the etcd resource and to return condition results.
func AllMembersReadyCheck ¶
AllMembersReadyCheck returns a check for the "AllMembersReady" condition.
func BackupReadyCheck ¶
BackupReadyCheck returns a check for the "BackupReady" condition.
func DataVolumesReadyCheck ¶
DataVolumesReadyCheck returns a check for the "DataVolumesReady" condition.
func ReadyCheck ¶
ReadyCheck returns a check for the "Ready" condition.
type Result ¶
type Result interface { ConditionType() druidv1alpha1.ConditionType Status() druidv1alpha1.ConditionStatus Reason() string Message() string }
Result encapsulates a condition result
Click to show internal directories.
Click to hide internal directories.