conditions

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contain

func Contain(conditions []metav1.Condition, options ...Option) bool

Contain returns true if the given conditions slice contains a condition that matches all of the given options.

Types

type Option

type Option func(condition metav1.Condition) bool

Option is a functional option for specifying conditions to match.

func Not

func Not(option Option) Option

func WithCondition

func WithCondition(condition metav1.Condition) Option

WithCondition returns a ConditionOption that matches conditions with the given condition.

func WithLastTransitionTime

func WithLastTransitionTime(lastTransitionTime metav1.Time) Option

WithLastTransitionTime returns a ConditionOption that matches conditions with the given last transition time.

func WithMessage

func WithMessage(message string) Option

WithMessage returns a ConditionOption that matches conditions with the given message.

func WithReason

func WithReason(reason string) Option

WithReason returns a ConditionOption that matches conditions with the given reason.

func WithStatus

func WithStatus(status metav1.ConditionStatus) Option

WithStatus returns a ConditionOption that matches conditions with the given status.

func WithType

func WithType(conditionType string) Option

WithType returns a ConditionOption that matches conditions with the given type.

Jump to

Keyboard shortcuts

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