events

package
v0.0.0-...-cc9fc9a Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventEmitter

type EventEmitter struct {
	// contains filtered or unexported fields
}

func NewEventEmitter

func NewEventEmitter(client client.Client, logger *logr.Logger, controllerInstance string) *EventEmitter

func (*EventEmitter) EmitMessage

func (e *EventEmitter) EmitMessage(ctx context.Context, tektonObserver *observerv1.TektonObservation, loggerLevel zapcore.Level, reason, message string)

func (*EventEmitter) EmitMessagePipelineRun

func (e *EventEmitter) EmitMessagePipelineRun(ctx context.Context, pipelineRun *tknv1.PipelineRun, loggerLevel zapcore.Level, reason, message string)

func (*EventEmitter) SetLogger

func (e *EventEmitter) SetLogger(logger *logr.Logger)

type EventMin

type EventMin struct {
	// The object that this event is about.
	InvolvedObject v1.ObjectReference `json:"involvedObject" protobuf:"bytes,2,opt,name=involvedObject"`

	// This should be a short, machine understandable string that gives the reason
	// for the transition into the object's current status.
	// TODO: provide exact specification for format.
	// +optional
	Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"`

	// A human-readable description of the status of this operation.
	// TODO: decide on maximum length.
	// +optional
	Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"`

	// Type of this event (Normal, Warning), new types could be added in the future
	// +optional
	Type string `json:"type,omitempty" protobuf:"bytes,9,opt,name=type"`

	// Time when this Event was first observed.
	// +optional
	EventTime metav1.MicroTime `json:"eventTime,omitempty" protobuf:"bytes,10,opt,name=eventTime"`

	Component string `json:"component,omitempty" protobuf:"bytes,1,opt,name=component"`
}

func NewEventMin

func NewEventMin(event v1.Event) EventMin

Jump to

Keyboard shortcuts

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