Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Add events ReasonAdding = "Adding" ReasonFailedToAdd = "FailedToAdd" ReasonSuccessfulAdd = "SuccessfulAdd" // Delete events ReasonDeleting = "Deleting" ReasonFailedToDelete = "FailedToDelete" ReasonSuccessfulDelete = "SuccessfulDelete" // Create events ReasonCreating = "Creating" ReasonFailedCreate = "FailedToCreate" ReasonSuccessfulCreate = "SuccessfulCreate" // Update events ReasonUpdating = "Updating" ReasonFailedToUpdate = "FailedToUpdate" ReasonSuccessfulUpdate = "SuccessfulUpdate" // Sync events ReasonSyncing = "Syncing" ReasonFailSync = "FailedToSync" ReasonSuccessSync = "SuccessfulSync" // Misc events ReasonLongerThanUsual = "TimeLongerThanUsual" ReasonUnknown = "Unknown" )
Types of kubernetes emitted events
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option provides configuration of an eventer.
func WithClient ¶
func WithClient(c kubernetes.Interface) Option
WithClient sets a client for the eventer (required).
func WithComponent ¶
WithComponent sets a component for the eventer.
func WithLogger ¶
WithLogger sets a logger for the eventer. If not set a noop logger will be used.
func WithNamespace ¶
WithNamespace sets a namespace for the eventer.
type Poster ¶
type Poster interface { NormalEvent(object runtime.Object, reason, message string, args ...interface{}) WarningEvent(object runtime.Object, reason, message string, args ...interface{}) }
Poster posts events accordingly to kind of behavior
func NewEventRecorder ¶
NewEventRecorder creates a new recorder to emit kubernetes events.
Click to show internal directories.
Click to hide internal directories.