events

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventRecorderNameCassandraCluster = "cassandra-cluster" // appears in the 'From' column of the events list

	EventAdminRoleSecretNotFound          = "AdminRoleSecretNotFound"
	EventAdminRoleSecretInvalid           = "AdminRoleSecretInvalid"
	EventAdminRoleUpdateFailed            = "AdminRoleUpdateFailed"
	EventAdminRoleCreated                 = "AdminRoleCreated"
	EventDefaultAdminRoleDropped          = "DefaultAdminRoleRemoved"
	EventRoleSecretNotFound               = "RolesSecretNotFound"
	EventTLSSecretNotFound                = "TLSSecretNotFound"
	EventTLSSecretInvalid                 = "TLSSecretInvalid"
	EventInsecureSetup                    = "InsecureSetup"
	EventInvalidRole                      = "InvalidRole"
	CassandraConfigInvalid                = "InvalidCassandraConfig"
	EventDCDecommissionBlocked            = "DCDecommissionBlocked"
	EventCassandraClusterNotFound         = "CassandraClusterNotFound"
	EventCassandraBackupNotFound          = "CassandraBackupNotFound"
	EventStorageCredentialsSecretNotFound = "StorageCredentialsSecretNotFound"
	EventStorageCredentialsSecretInvalid  = "StorageCredentialsSecretInvalid"

	EventAdminRoleChanged = "AdminRoleChanged"
	EventRegionInit       = "RegionInit"
	EventDCInit           = "DCInit"
	EventCQLScriptSuccess = "CQLScriptSuccess"
	EventCQLScriptFailed  = "CQLScriptFailed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventReason

type EventReason string

EventReason is the reason why the event was created. The value appears in the 'Reason' tab of the events list

type EventRecorder

type EventRecorder struct {
	Recorder record.EventRecorder
}

EventRecorder handles the operations for events

func NewEventRecorder

func NewEventRecorder(recorder record.EventRecorder) *EventRecorder

NewEventRecorder wraps the provided event recorder

func (*EventRecorder) Normal

func (e *EventRecorder) Normal(object runtime.Object, reason EventReason, message string)

Normal creates a 'normal' type event

func (*EventRecorder) Warning

func (e *EventRecorder) Warning(object runtime.Object, reason EventReason, message string)

Warning creates a 'warning' type event

Jump to

Keyboard shortcuts

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