common

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsModifyingStatus

func IsModifyingStatus(
	latestStatus *string,
	modifyingStatuses *[]string,
) bool

IsModifyingStatus returns true if a resource's latest status matches one of the provided modifying statuses.

func RequeueIfModifying

func RequeueIfModifying(
	latestStatus *string,
	resourceName *string,
	modifyingStatuses *[]string,
) error

RequeueIfModifying creates and returns an ackrequeue if a resource's latest status matches one of the provided modifying statuses.

func SetSyncedCondition

func SetSyncedCondition(
	r acktypes.AWSResource,
	latestStatus *string,
	resourceName *string,
	modifyingStatuses *[]string,
)

SetSyncedCondition sets the ACK Synced Condition status to true if the resource status exists but is not in one of the given modifying statuses, or false if the resource status is one of the given modifying statuses.

func SetTerminalState

func SetTerminalState(
	r acktypes.AWSResource,
	latestStatus *string,
	resourceName *string,
	terminalStatus string,
) bool

SetTerminalState sets conditions (terminal) on a resource's supplied status conditions if the latest status matches the terminal status. It returns true if conditions are updated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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