jobconditions

package
v0.2.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL