condition

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 174

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllOfType

func AllOfType(
	subject acktypes.ConditionManager,
	condType ackv1alpha1.ConditionType,
) []*ackv1alpha1.Condition

AllOfType returns a slice of Conditions in the resource's Conditions collection of the supplied type.

func FirstOfType

func FirstOfType(
	subject acktypes.ConditionManager,
	condType ackv1alpha1.ConditionType,
) *ackv1alpha1.Condition

FirstOfType returns the first Condition in the resource's Conditions collection of the supplied type. If no such condition is found, returns nil.

func SetSynced

func SetSynced(
	subject acktypes.ConditionManager,
	status corev1.ConditionStatus,
	message *string,
	reason *string,
)

SetSynced sets the resource's Condition of type ConditionTypeResourceSynced to the supplied status, optional message and reason.

func SetTerminal

func SetTerminal(
	subject acktypes.ConditionManager,
	status corev1.ConditionStatus,
	message *string,
	reason *string,
)

SetTerminal sets the resource's Condition of type ConditionTypeTerminal to the supplied status, optional message and reason.

func Synced

Synced returns the Condition in the resource's Conditions collection that is of type ConditionTypeResourceSynced. If no such condition is found, returns nil.

func Terminal

Terminal returns the Condition in the resource's Conditions collection that is of type ConditionTypeTerminal. If no such condition is found, returns nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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