event

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Event types
	EventTypeNormal  EventType = "Normal"
	EventTypeWarning EventType = "Warning"

	// Event reasons
	ReasonCreated    EventReason = "Created"
	ReasonUpdated    EventReason = "Updated"
	ReasonFailed     EventReason = "Failed"
	ReasonReconciled EventReason = "Reconciled"

	// Kode event reasons
	ReasonKodeConfiguring                    EventReason = "Configuring"
	ReasonKodeProvisioning                   EventReason = "Provisioning"
	ReasonKodeActive                         EventReason = "Active"
	ReasonKodeSuspended                      EventReason = "Suspended"
	ReasonKodeResuming                       EventReason = "Resuming"
	ReasonKodeDeleting                       EventReason = "Deleting"
	ReasonKodeFailed                         EventReason = "Failed"
	ReasonKodeUnknown                        EventReason = "Unknown"
	ReasonKodeCSIResizeCapabilityChecked     EventReason = "CSIResizeCapabilityChecked"
	ReasonKodeCSIResizeCapabilityCheckFailed EventReason = "CSIResizeCapabilityCheckFailed"
	ReasonKodePVCResizeAttempted             EventReason = "PVCResizeAttempted"
	ReasonKodePVCResizeSkipped               EventReason = "PVCResizeSkipped"
	ReasonKodePVCCreated                     EventReason = "PVCCreated"
	ReasonKodeExistingPVCUsed                EventReason = "ExistingPVCUsed"

	// EntryPoint event reasons
	ReasonEntryPointConfiguring         EventReason = "EntryPointConfiguring"
	ReasonEntryPointProvisioning        EventReason = "EntryPointProvisioning"
	ReasonEntryPointActive              EventReason = "EntryPointActive"
	ReasonEntryPointDeleting            EventReason = "EntryPointDeleting"
	ReasonEntryPointFailed              EventReason = "EntryPointFailed"
	ReasonEntryPointUnknown             EventReason = "EntryPointUnknown"
	ReasonEntryPointValidationFailed    EventReason = "EntryPointValidationFailed"
	ReasonEntryPointResourceCheckFailed EventReason = "EntryPointResourceCheckFailed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventManager

type EventManager interface {
	Record(ctx context.Context, object client.Object, eventtype EventType, reason EventReason, message string) error
}

EventManager defines the interface for managing events

func NewEventManager

func NewEventManager(client client.Client, log logr.Logger, scheme *runtime.Scheme, eventRecorder record.EventRecorder) EventManager

NewEventManager creates a new EventManager

type EventReason

type EventReason string

EventReason defines the reason for an event

type EventType

type EventType string

EventType defines the type of an event

Jump to

Keyboard shortcuts

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