compare

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualDatabaseMaintenanceWindow

func EqualDatabaseMaintenanceWindow(targetValue dbaasv1alpha1.MaintenanceWindow, observedValue *ionosdbaas.MaintenanceWindow) bool

EqualDatabaseMaintenanceWindow returns true if the maintenance windows are equal

func EqualDayOfTheWeek

func EqualDayOfTheWeek(targetValue string, observedValue *ionosdbaas.DayOfTheWeek) bool

EqualDayOfTheWeek returns if the string representation of the DayOfTheWeek are equal. An observed nil value is equal to ""

func EqualKubernetesMaintenanceWindow

func EqualKubernetesMaintenanceWindow(targetValue k8sv1alpha1.MaintenanceWindow, observedValue *ionoscloud.KubernetesMaintenanceWindow) bool

EqualKubernetesMaintenanceWindow returns true if the maintenance windows are equal

func EqualString

func EqualString(targetValue string, observedValue *string) bool

EqualString returns if the strings are equal. An observed nil value is equal to ""

func EqualTimeString

func EqualTimeString(targetValue string, observedValue *string) bool

EqualTimeString compares the two given strings if they are represent the same point in time. This function assumes the timeformat is HH:mm:ssZ. If the Z is missing, it will be added.

Types

This section is empty.

Jump to

Keyboard shortcuts

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