Documentation ¶
Index ¶
- Variables
- func ExpectedFalseErrorMessage(cr CR, conditionType capi.ConditionType) string
- func ExpectedStatusErrorMessage(cr CR, conditionType capi.ConditionType, expectedStatus corev1.ConditionStatus) string
- func ExpectedTrueErrorMessage(cr CR, conditionType capi.ConditionType) string
- func IsFalse(condition *capi.Condition) bool
- func IsTrue(condition *capi.Condition) bool
- func IsUnexpected(from capiconditions.Getter, t capi.ConditionType) bool
- func IsUnexpectedConditionStatus(err error) bool
- func IsUnknown(condition *capi.Condition) bool
- func IsUpgraded(cr CR, desiredRelease string) (bool, error)
- func IsUpgradingFalse(from capiconditions.Getter) bool
- func IsUpgradingInProgress(cr CR, desiredRelease string) (bool, error)
- func IsUpgradingTrue(from capiconditions.Getter) bool
- func MarkUpgradingCompleted(cr CR)
- func MarkUpgradingNotStarted(cr CR)
- func MarkUpgradingStarted(cr CR)
- func UnexpectedConditionStatusErrorMessage(cr CR, t capi.ConditionType) string
- type CR
Constants ¶
This section is empty.
Variables ¶
View Source
var UnexpectedConditionStatusError = µerror.Error{
Kind: "UnexpectedConditionStatus",
}
Functions ¶
func ExpectedFalseErrorMessage ¶
func ExpectedFalseErrorMessage(cr CR, conditionType capi.ConditionType) string
func ExpectedStatusErrorMessage ¶
func ExpectedStatusErrorMessage(cr CR, conditionType capi.ConditionType, expectedStatus corev1.ConditionStatus) string
func ExpectedTrueErrorMessage ¶
func ExpectedTrueErrorMessage(cr CR, conditionType capi.ConditionType) string
func IsUnexpected ¶
func IsUnexpected(from capiconditions.Getter, t capi.ConditionType) bool
func IsUnexpectedConditionStatus ¶
IsInvalidCondition asserts invalidConditionError.
func IsUpgradingFalse ¶
func IsUpgradingFalse(from capiconditions.Getter) bool
func IsUpgradingTrue ¶
func IsUpgradingTrue(from capiconditions.Getter) bool
func MarkUpgradingCompleted ¶
func MarkUpgradingCompleted(cr CR)
func MarkUpgradingNotStarted ¶
func MarkUpgradingNotStarted(cr CR)
func MarkUpgradingStarted ¶
func MarkUpgradingStarted(cr CR)
func UnexpectedConditionStatusErrorMessage ¶
func UnexpectedConditionStatusErrorMessage(cr CR, t capi.ConditionType) string
Types ¶
type CR ¶
type CR interface { key.LabelsGetter capiconditions.Setter }
Click to show internal directories.
Click to hide internal directories.