jobconditions

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) *v1.JobCondition

FalseCondition returns a condition with Status=False and the given type.

func Get

func Get(conditions *model.JobConditions, condType string) *v1.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 *v1.JobCondition) *model.JobConditions

Set updates or adds a JobCondition to the provided JobConditions.

func TrueCondition

func TrueCondition(t string) *v1.JobCondition

TrueCondition returns a condition with Status=True and the given type.

func UnknownCondition

func UnknownCondition(t string, messageFormat string, messageArgs ...any) *v1.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