event

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InitCloneSucceeded = MOCOEvent{
		Type:    corev1.EventTypeNormal,
		Reason:  "InitCloned",
		Message: "Clone from an external mysqld succeeded",
	}
	InitCloneFailed = MOCOEvent{
		Type:    corev1.EventTypeWarning,
		Reason:  "InitCloneFailed",
		Message: "Clone from an external mysqld failed: %v",
	}
	SwitchOverSucceeded = MOCOEvent{
		Type:    corev1.EventTypeNormal,
		Reason:  "SwitchOver",
		Message: "The primary was changed to instance %d due to a switchover",
	}
	SwitchOverFailed = MOCOEvent{
		Type:    corev1.EventTypeWarning,
		Reason:  "SwitchOverFailed",
		Message: "The primary could not be changed: %v",
	}
	FailOverSucceeded = MOCOEvent{
		Type:    corev1.EventTypeNormal,
		Reason:  "FailOver",
		Message: "The primary was changed to instance %d due to a failover",
	}
	FailOverFailed = MOCOEvent{
		Type:    corev1.EventTypeWarning,
		Reason:  "FailOverFailed",
		Message: "The primary could not be changed: %v",
	}
	CloneSucceeded = MOCOEvent{
		Type:    corev1.EventTypeNormal,
		Reason:  "Cloned",
		Message: "Clone from the primary succeeded for instance %d",
	}
	CloneFailed = MOCOEvent{
		Type:    corev1.EventTypeWarning,
		Reason:  "CloneFailed",
		Message: "Clone from the primary failed for instance %d: %v",
	}
	SetWritable = MOCOEvent{
		Type:    corev1.EventTypeNormal,
		Reason:  "Writable",
		Message: "The primary became writable",
	}
	BackupCreated = MOCOEvent{
		Type:    corev1.EventTypeNormal,
		Reason:  "BackupCreated",
		Message: "Backup created",
	}
	BackupNoBinlog = MOCOEvent{
		Type:    corev1.EventTypeWarning,
		Reason:  "BackupNoBinlog",
		Message: "Backup created w/o binlog files",
	}
	Restored = MOCOEvent{
		Type:    corev1.EventTypeNormal,
		Reason:  "Restored",
		Message: "Successfully restored data from backup",
	}
)

Functions

This section is empty.

Types

type MOCOEvent

type MOCOEvent struct {
	Type    string
	Reason  string
	Message string
}

func (MOCOEvent) Emit

func (e MOCOEvent) Emit(obj runtime.Object, r record.EventRecorder, args ...interface{})

func (MOCOEvent) ToEvent added in v0.9.0

func (e MOCOEvent) ToEvent(ref *corev1.ObjectReference, args ...interface{}) *corev1.Event

Jump to

Keyboard shortcuts

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