compare

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualConnection added in v1.1.2

func EqualConnection(targetValue dbaasv1alpha1.Connection, observedValue *ionosdbaas.Connection) bool

EqualConnection returns true if the connections are equal

func EqualConnectionPooler added in v1.1.2

func EqualConnectionPooler(targetValue dbaasv1alpha1.ConnectionPooler, observedValue *ionosdbaas.ConnectionPooler) bool

EqualConnectionPooler returns true if the connection poolers are equal

func EqualConnections added in v1.1.2

func EqualConnections(targetValue []dbaasv1alpha1.Connection, observedValue []ionosdbaas.Connection) bool

EqualConnections returns true if the connections are equal

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 EqualMaintenanceWindow added in v1.0.9

func EqualMaintenanceWindow(targetValue MaintenanceWindowResource, observedValue MaintenanceWindowPtrResource) bool

EqualMaintenanceWindow returns true if the maintenance windows are equal

func EqualMongoDatabaseMaintenanceWindow added in v1.0.9

func EqualMongoDatabaseMaintenanceWindow(targetValue mongoalphav1.MaintenanceWindow, observedValue *mongo.MaintenanceWindow) bool

EqualMongoDatabaseMaintenanceWindow returns true if the maintenance windows are equal

func EqualMongoDayOfTheWeek added in v1.0.9

func EqualMongoDayOfTheWeek(targetValue string, observedValue *mongo.DayOfTheWeek) bool

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

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

type MaintenanceWindowPtrResource added in v1.0.9

type MaintenanceWindowPtrResource interface {
	GetTime() *string
	GetDayOfTheWeek() *string
}

MaintenanceWindowPtrResource to be able to compare maintenance windows from different sdks

type MaintenanceWindowResource added in v1.0.9

type MaintenanceWindowResource interface {
	GetTime() string
	GetDayOfTheWeek() string
}

MaintenanceWindowResource - interface to be able to compare maintenance windows from different sdks

Jump to

Keyboard shortcuts

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