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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.