Documentation ¶
Index ¶
- Constants
- func ConditionReasonEquals(cond *v1.Condition, reason string) bool
- func ConditionStatusEquals(cond *v1.Condition, status v1.ConditionStatus) bool
- func ElapsedTimeFromLastTransitionTime(condition *v1.Condition, roundTo time.Duration) time.Duration
- func FindCondition(conditions []v1.Condition, name string) *v1.Condition
- func FindConditionOrFailed(conditions []v1.Condition, name string) (bool, *v1.Condition)
- func InstanceUpsertCondition(iStatus *v1alpha1.InstanceStatus, name string, status v1.ConditionStatus, ...) *v1.Condition
- func Upsert(conditions []v1.Condition, name string, status v1.ConditionStatus, ...) []v1.Condition
- type StatusCond
Constants ¶
View Source
const ( // Condition Types Ready = "Ready" DatabaseInstanceReady = "DatabaseInstanceReady" DatabaseInstanceTimeout = "DatabaseInstanceTimeout" UserReady = "UserReady" StandbyReady = "StandbyReady" PauseMode = "Pause" StandbyDRReady = "StandbyDRReady" InstanceStopped = "InstanceStopped" // Condition Reasons // Backup schedule concurrent policy is relying on the backup ready condition’s reason, // BackupReady and BackupFailed means backup job is not running and scheduler will continue creating backup. BackupPending = "BackupPending" BackupReady = "BackupReady" BackupInProgress = "BackupInProgress" BackupDeleting = "BackupDeleting" BackupFailed = "BackupFailed" CreateComplete = "CreateComplete" CreateFailed = "CreateFailed" CreateInProgress = "CreateInProgress" CreatePending = "CreatePending" BootstrapPending = "BootstrapPending" BootstrapInProgress = "BootstrapInProgress" ReconcileServices = "ReconcileServices" RestorePending = "RestorePending" ResizingInProgress = "ResizingInProgress" ImportComplete = "ImportComplete" ImportFailed = "ImportFailed" ImportInProgress = "ImportInProgress" ImportPending = "ImportPending" RestoreComplete = "RestoreComplete" RestoreFailed = "RestoreFailed" RestorePreparationInProgress = "RestorePreparationInProgress" RestorePreparationComplete = "RestorePreparationComplete" RestoreInProgress = "RestoreInProgress" PostRestoreBootstrapInProgress = "PostRestoreBootstrapInProgress" PostRestoreBootstrapComplete = "PostRestoreBootstrapComplete" PostRestoreDatabasePatchingInProgress = "PostRestoreDatabasePatchingInProgress" SyncInProgress = "SyncInProgress" UserOutOfSync = "UserOutOfSync" SyncComplete = "SyncComplete" ManuallySetUpStandbyInProgress = "ManuallySetUpStandbyInProgress" PromoteStandbyInProgress = "PromoteStandbyInProgress" PromoteStandbyComplete = "PromoteStandbyComplete" PromoteStandbyFailed = "PromoteStandbyFailed" DBShutDown = "DBShutdown" InstanceStoppingInProgress = "InstanceStoppingInProgress" ExportComplete = "ExportComplete" ExportFailed = "ExportFailed" ExportInProgress = "ExportInProgress" ExportPending = "ExportPending" ParameterUpdateInProgress = "ParameterUpdateInProgress" ParameterUpdateComplete = "ParameterUpdateComplete" ParameterUpdateRollbackInProgress = "ParameterUpdateRollbackInProgress" StandbyDRInProgress = "StandbyDRInProgress" StandbyDRVerifyCompleted = "StandbyDRVerifyCompleted" StandbyDRVerifyFailed = "StandbyDRVerifyFailed" StandbyDRCreateInProgress = "StandbyDRCreateInProgress" StandbyDRCreateFailed = "StandbyDRCreateFailed" StandbyDRCreateCompleted = "StandbyDRCreateCompleted" StandbyDRSetUpDataGuardFailed = "StandbyDRSetUpDataGuardFailed" StandbyDRSetUpDataGuardCompleted = "StandbyDRSetUpDataGuardCompleted" StandbyDRDataGuardReplicationInProgress = "StandbyDRDataGuardReplicationInProgress" StandbyDRPromoteFailed = "StandbyDRPromoteFailed" StandbyDRPromoteCompleted = "StandbyDRPromoteCompleted" StandbyDRBootstrapFailed = "StandbyDRBootstrapFailed" StandbyDRBootstrapCompleted = "StandbyDRBootstrapCompleted" PatchingBackupStarted = "PatchingBackupStarted" PatchingBackupCompleted = "PatchingBackupCompleted" PatchingBackupFailure = "PatchingBackupFailure" PatchingRecoveryInProgress = "PatchingRecoveryInProgress" PatchingRecoveryCompleted = "PatchingRecoveryCompleted" PatchingRecoveryFailure = "PatchingRecoveryFailure" DeploymentSetPatchingInProgress = "DeploymentSetPatchingInProgress" DeploymentSetPatchingRollbackInProgress = "DeploymentSetPatchingRollbackInProgress" DeploymentSetPatchingFailure = "DeploymentSetPatchingFailure" DeploymentSetPatchingComplete = "DeploymentSetPatchingComplete" StatefulSetPatchingInProgress = "StatefulSetPatchingInProgress" StatefulSetPatchingComplete = "StatefulSetPatchingComplete" StatefulSetPatchingFailure = "StatefulSetPatchingFailure" DatabasePatchingInProgress = "DatabasePatchingInProgress" DatabasePatchingComplete = "DatabasePatchingComplete" DatabasePatchingFailure = "DatabasePatchingFailure" NotSupported = "NotSupported" )
View Source
const ( CreatingDatabase = "Creating" CreatedDatabase = "Created" DatabaseAlreadyExists = "DatabaseAlreadyExists" CreatingUser = "Creating" CreatedUser = "Created" SyncingUser = "Syncing" SyncedUser = "Synced" FailedToSyncUser = "Failed" )
database event reason list
Variables ¶
This section is empty.
Functions ¶
func ConditionStatusEquals ¶
func ConditionStatusEquals(cond *v1.Condition, status v1.ConditionStatus) bool
func FindConditionOrFailed ¶
func InstanceUpsertCondition ¶
func InstanceUpsertCondition(iStatus *v1alpha1.InstanceStatus, name string, status v1.ConditionStatus, reason, message string) *v1.Condition
Types ¶
type StatusCond ¶
type StatusCond struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.