Documentation ¶
Index ¶
- func CompareMajorVersion(a, b string) (bool, error)
- func CompareSettings(a, b runtime.RawExtension) bool
- func FindStatusCondition(c []xpv1.Condition, conditionType xpv1.ConditionType) *xpv1.Condition
- func IsSameStringSet(a []string, b *[]string) bool
- func ToBackupSpec(schedule *BackupSchedule) exoscalev1.BackupSpec
- func ToDBaaSParameters(tp *bool, plan string, ipf *[]string) exoscalev1.DBaaSParameters
- func ToMaintenance(m *oapi.DbaasServiceMaintenance) exoscalev1.MaintenanceSpec
- func ToMap(raw runtime.RawExtension) (map[string]interface{}, error)
- func ToNodeStates(states *[]oapi.DbaasNodeState) []exoscalev1.NodeState
- func ToNotifications(notifications *[]oapi.DbaasServiceNotification) ([]exoscalev1.Notification, error)
- func ToRawExtension(m *map[string]interface{}) (runtime.RawExtension, error)
- func ToSlice(arr *[]string) []string
- func ToSlicePtr(arr []string) *[]string
- type BackupSchedule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareMajorVersion ¶ added in v0.4.0
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
FindStatusCondition returns the condition by the given type if present. If not found, it returns nil.
func IsSameStringSet ¶ added in v0.4.0
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 ToMaintenance(m *oapi.DbaasServiceMaintenance) exoscalev1.MaintenanceSpec
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 ToSlicePtr ¶ added in v0.4.0
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)
Click to show internal directories.
Click to hide internal directories.