event

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 3 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",
	}
)

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

Jump to

Keyboard shortcuts

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