Documentation ¶
Index ¶
- func Delete(conditions *model.JobConditions, condType string)
- func FalseCondition(t string, messageFormat string, messageArgs ...any) *nwv1.JobCondition
- func Get(conditions *model.JobConditions, condType string) *nwv1.JobCondition
- func IsFalse(conditions *model.JobConditions, condType string) bool
- func IsTrue(conditions *model.JobConditions, condType string) bool
- func Set(conditions *model.JobConditions, cond *nwv1.JobCondition) *model.JobConditions
- func TrueCondition(t string) *nwv1.JobCondition
- func UnknownCondition(t string, messageFormat string, messageArgs ...any) *nwv1.JobCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(conditions *model.JobConditions, condType string)
Delete deletes the condition with the given type.
func FalseCondition ¶
func FalseCondition(t string, messageFormat string, messageArgs ...any) *nwv1.JobCondition
FalseCondition returns a condition with Status=False and the given type.
func Get ¶
func Get(conditions *model.JobConditions, condType string) *nwv1.JobCondition
Get retrieves the JobCondition for a specified condition type from the provided JobConditions.
func IsFalse ¶
func IsFalse(conditions *model.JobConditions, condType string) bool
IsFalse checks if the specified condition type in JobConditions is false.
func IsTrue ¶
func IsTrue(conditions *model.JobConditions, condType string) bool
IsTrue checks if the specified condition type in JobConditions is true.
func Set ¶
func Set(conditions *model.JobConditions, cond *nwv1.JobCondition) *model.JobConditions
Set updates or adds a JobCondition to the provided JobConditions.
func TrueCondition ¶
func TrueCondition(t string) *nwv1.JobCondition
TrueCondition returns a condition with Status=True and the given type.
func UnknownCondition ¶
func UnknownCondition(t string, messageFormat string, messageArgs ...any) *nwv1.JobCondition
UnknownCondition returns a condition with Status=Unknown and the given type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.