MCPcopy
hub / github.com/kubevela/kubevela / Equal

Method Equal

apis/core.oam.dev/condition/condition.go:89–94  ·  view source on GitHub ↗

Equal returns true if the condition is identical to the supplied condition, ignoring the LastTransitionTime.

(other Condition)

Source from the content-addressed store, hash-verified

87// Equal returns true if the condition is identical to the supplied condition,
88// ignoring the LastTransitionTime.
89func (c Condition) Equal(other Condition) bool {
90 return c.Type == other.Type &&
91 c.Status == other.Status &&
92 c.Reason == other.Reason &&
93 c.Message == other.Message
94}
95
96// WithMessage returns a condition by adding the provided message to existing
97// condition.

Callers 15

TestOAMAuxiliaryFunction · 0.45
IsConditionChangedFunction · 0.45
TestAlreadyExistMatcherFunction · 0.45
TestNotFoundMatcherFunction · 0.45
TestErrorMatcherFunction · 0.45
TestCheckAppRevisionFunction · 0.45
TestUnstructuredFunction · 0.45
TestGetGVKFromDefFunction · 0.45
TestDeepHashObjectFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestOAMAuxiliaryFunction · 0.36
TestAlreadyExistMatcherFunction · 0.36
TestNotFoundMatcherFunction · 0.36
TestErrorMatcherFunction · 0.36
TestCheckAppRevisionFunction · 0.36
TestUnstructuredFunction · 0.36
TestGetGVKFromDefFunction · 0.36
TestDeepHashObjectFunction · 0.36
TestAddLabelsFunction · 0.36