events

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package events defines the interface and different implementations for events

Tekton uses events to notify about changes in Condition of resources, like a TaskRun is starting, a PipelineRun failed to run or could not be validated.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// TriggerProcessingStartedV1 is sent for Sink Triggers when a trigger is started
	TriggerProcessingStartedV1 = "dev.tekton.event.triggers.started.v1"
	// TriggerProcessingSuccessfulV1 is sent for Sink Triggers when a trigger is successful
	TriggerProcessingSuccessfulV1 = "dev.tekton.event.triggers.successful.v1"
	// TriggerProcessingFailedEventV1 is sent for Sink Triggers when we fail to process trigger
	TriggerProcessingFailedV1 = "dev.tekton.event.triggers.failed.v1"
	// TriggerProcessingDoneV1 is sent for Sink Triggers when we are done
	// with eventlistener handler
	TriggerProcessingDoneV1 = "dev.tekton.event.triggers.done.v1"
	// EventAccepted is sent as response for CloudEvent compliant providers
	EventAccepted = "dev.tekton.event.triggers.accepted.v1"
)

Variables

This section is empty.

Functions

func Emit

func Emit(recorder record.EventRecorder, eventType string, object runtime.Object, err error)

Emit emits events for object Supported events are k8s events.

Types

This section is empty.

Jump to

Keyboard shortcuts

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