k8s

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 ConditionReasonEquals

func ConditionReasonEquals(cond *v1.Condition, reason string) bool

func ConditionStatusEquals

func ConditionStatusEquals(cond *v1.Condition, status v1.ConditionStatus) bool

func ElapsedTimeFromLastTransitionTime

func ElapsedTimeFromLastTransitionTime(condition *v1.Condition, roundTo time.Duration) time.Duration

func FindCondition

func FindCondition(conditions []v1.Condition, name string) *v1.Condition

func FindConditionOrFailed

func FindConditionOrFailed(conditions []v1.Condition, name string) (bool, *v1.Condition)

func InstanceUpsertCondition

func InstanceUpsertCondition(iStatus *v1alpha1.InstanceStatus, name string, status v1.ConditionStatus, reason, message string) *v1.Condition

func Upsert

func Upsert(conditions []v1.Condition, name string, status v1.ConditionStatus, reason, message string) []v1.Condition

Types

type StatusCond

type StatusCond struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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