k8s

package
v0.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 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 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
}

Jump to

Keyboard shortcuts

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