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 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" // 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. BackupReady = "BackupReady" BackupInProgress = "BackupInProgress" BackupFailed = "BackupFailed" CreateComplete = "CreateComplete" CreateFailed = "CreateFailed" CreateInProgress = "CreateInProgress" CreatePending = "CreatePending" ImportComplete = "ImportComplete" ImportFailed = "ImportFailed" ImportInProgress = "ImportInProgress" ImportPending = "ImportPending" RestoreComplete = "RestoreComplete" RestoreFailed = "RestoreFailed" RestoreInProgress = "RestoreInProgress" SyncInProgress = "SyncInProgress" UserOutOfSync = "UserOutOfSync" SyncComplete = "SyncComplete" ManuallySetUpStandbyInProgress = "ManuallySetUpStandbyInProgress" PromoteStandbyInProgress = "PromoteStandbyInProgress" PromoteStandbyComplete = "PromoteStandbyComplete" PromoteStandbyFailed = "PromoteStandbyFailed" ExportComplete = "ExportComplete" ExportFailed = "ExportFailed" ExportInProgress = "ExportInProgress" ExportPending = "ExportPending" ParameterUpdateInProgress = "ParameterUpdateInProgress" ParameterUpdateRollback = "ParameterUpdateRollback" )
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 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.