mapper

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareMajorVersion added in v0.4.0

func CompareMajorVersion(a, b string) (bool, error)

CompareMajorVersion params should follow SemVer. But a version starting with 'v' is also valid, e.g v1.2.3

func CompareSettings added in v0.4.0

func CompareSettings(a, b runtime.RawExtension) bool

func FindStatusCondition added in v0.3.0

func FindStatusCondition(c []xpv1.Condition, conditionType xpv1.ConditionType) *xpv1.Condition

FindStatusCondition returns the condition by the given type if present. If not found, it returns nil.

func IsSameStringSet added in v0.4.0

func IsSameStringSet(a []string, b *[]string) bool

IsSameStringSet returns true if both slices have the same unique elements in any order.

func ToBackupSpec added in v0.4.0

func ToBackupSpec(schedule *BackupSchedule) exoscalev1.BackupSpec

func ToDBaaSParameters added in v0.4.0

func ToDBaaSParameters(tp *bool, plan string, ipf *[]string) exoscalev1.DBaaSParameters

func ToMaintenance added in v0.4.0

func ToMap

func ToMap(raw runtime.RawExtension) (map[string]interface{}, error)

func ToNodeStates added in v0.4.0

func ToNodeStates(states *[]oapi.DbaasNodeState) []exoscalev1.NodeState

func ToNotifications added in v0.4.0

func ToNotifications(notifications *[]oapi.DbaasServiceNotification) ([]exoscalev1.Notification, error)

func ToRawExtension

func ToRawExtension(m *map[string]interface{}) (runtime.RawExtension, error)

func ToSlice added in v0.4.0

func ToSlice(arr *[]string) []string

func ToSlicePtr added in v0.4.0

func ToSlicePtr(arr []string) *[]string

Types

type BackupSchedule

type BackupSchedule = struct {
	BackupHour   *int64 `json:"backup-hour,omitempty"`
	BackupMinute *int64 `json:"backup-minute,omitempty"`
}

BackupSchedule is a type alias for the embedded struct in opai.CreateDbaasServicePgJSONRequestBody.

func ToBackupSchedule added in v0.4.0

func ToBackupSchedule(day exoscalev1.TimeOfDay) (BackupSchedule, error)

Jump to

Keyboard shortcuts

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