Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUpToDate ¶
func IsUpToDate(actual, desired interface{}, opts ...LateInitOption) (bool, error)
IsUpToDate checks whether the actual state is up-to-date with the given desired state
func LateInitializeFromResponse ¶
func LateInitializeFromResponse(parentName string, crObject interface{}, responseObject interface{}, opts ...LateInitOption) (bool, error)
LateInitializeFromResponse Copy unset (nil) values from responseObject to crObject
Both crObject and responseObject must be pointers to structs. Otherwise, an error will be returned. Returns `true` if at least one field has been stored from source `responseObject` into a corresponding field of target `crObject`.
nolint:gocyclo
Types ¶
type LateInitOption ¶
type LateInitOption interface {
// contains filtered or unexported methods
}
LateInitOption Interface for options that affect late-initialization behavior of a managed resource
type NameMapper ¶
NameMapper defines a transformation from CR field names to response field names
func MapReplacer ¶
func MapReplacer(m map[string]string) NameMapper
MapReplacer returns a `NameMapper` as a `LateInitOption` that
uses the specified `map[string]string` to map from target CR field names to corresponding source response field names.
func Replacer ¶
func Replacer(old, new string) NameMapper
Replacer returns a `NameMapper` as a `LateInitOption` that
that replaces all occurrences of string `old` to `new` in a target CR field name to obtain the corresponding source response field name.
Click to show internal directories.
Click to hide internal directories.