condition

package
Version: v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 6 Imported by: 78

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotManagedMessage = "Resource already exists"
	NotManagedReason  = "This resource already exists but is not managed by ACK. " +
		"To bring the resource under ACK management, you should explicitly adopt " +
		"the resource by creating a services.k8s.aws/AdoptedResource"
	UnknownSyncedMessage = "Unable to determine if desired resource state matches latest observed state"
	NotSyncedMessage     = "Resource not synced"
	SyncedMessage        = "Resource synced successfully"
)

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 Clear added in v0.16.0

func Clear(
	subject acktypes.ConditionManager,
)

Clear resets the resource's collection of Conditions to an empty list.

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 LateInitializationInProgress added in v0.10.0

func LateInitializationInProgress(subject acktypes.ConditionManager) bool

LateInitializationInProgress return true if ConditionTypeLateInitialized has "False" status False status means that resource has LateInitializationConfig but has not been completely late initialized yet.

func LateInitialized added in v0.10.0

func LateInitialized(subject acktypes.ConditionManager) *ackv1alpha1.Condition

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

func Recoverable added in v0.18.0

func Recoverable(subject acktypes.ConditionManager) *ackv1alpha1.Condition

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

func ReferencesResolved added in v0.16.0

func ReferencesResolved(subject acktypes.ConditionManager) *ackv1alpha1.Condition

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

func RemoveReferencesResolved added in v0.16.0

func RemoveReferencesResolved(
	subject acktypes.ConditionManager,
)

RemoveReferencesResolved removes the condition of type ConditionTypeReferencesResolved from the resource's conditions

func SetLateInitialized added in v0.10.0

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

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

func SetRecoverable added in v0.18.0

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

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

func SetReferencesResolved added in v0.16.0

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

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

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.

func WithReferencesResolvedCondition added in v0.16.0

func WithReferencesResolvedCondition(
	resource acktypes.AWSResource,
	err error,
) (acktypes.AWSResource, error)

WithReferencesResolvedCondition sets the ConditionTypeReferencesResolved in AWSResource based on the err parameter and returns (AWSResource,error)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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