event

package
v0.0.0-...-8a20bae Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonCreated     = "Created"
	ReasonDeleted     = "Deleted"
	ReasonUpdated     = "Updated"
	ReasonDelayed     = "Delayed"
	ReasonUpgraded    = "Upgraded"
	ReasonUnhealthy   = "Unhealthy"
	ReasonUnexpected  = "Unexpected"
	ReasonValidation  = "Validation"
	ReasonStateChange = "StateChange"
	ReasonRestart     = "Restart"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	EventType string
	Reason    string
	Message   string
}

type Recorder

type Recorder struct {
	Events []Event
}

func NewEventRecorder

func NewEventRecorder() *Recorder

func (*Recorder) AddEvent

func (r *Recorder) AddEvent(eventType, reason, message string)

Jump to

Keyboard shortcuts

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