# Functions
EmitCloudEvents emits CloudEvents (only) for object.
EmitCloudEventsWhenConditionChange emits CloudEvents when there is a change in condition.
EventForObjectWithCondition creates a new event based for an objectWithCondition, or returns an error if not possible.
Get extracts the cloudEventClient client from the context.
GetCloudEventDeliveryCompareOptions returns compare options to sort and compare a list of CloudEventDelivery.
SendCloudEventWithRetries sends a cloud event for the specified resource.
ToContext adds the cloud events client to the context.
WithFakeClient adds to the context a fake client with the desired behaviour and expectedEventCount.
# Constants
CustomRunFailedEventV1 is sent for CustomRuns with "ConditionSucceeded" "False".
CustomRunRunningEventV1 is sent for CustomRuns with "ConditionSucceeded" "Unknown" once the CustomRun is validated and Pod created.
CustomRunStartedEventV1 is sent for CustomRuns with "ConditionSucceeded" "Unknown" the first time they are picked up by the reconciler.
CustomRunSuccessfulEventV1 is sent for CustomRuns with "ConditionSucceeded" "True".
PipelineRunFailedEventV1 is sent for PipelineRuns with "ConditionSucceeded" "False".
PipelineRunRunningEventV1 is sent for PipelineRuns with "ConditionSucceeded" "Unknown" once the PipelineRun is validated and Pod created.
PipelineRunStartedEventV1 is sent for PipelineRuns with "ConditionSucceeded" "Unknown" the first time they are picked up by the reconciler.
PipelineRunSuccessfulEventV1 is sent for PipelineRuns with "ConditionSucceeded" "True".
PipelineRunUnknownEventV1 is sent for PipelineRuns with "ConditionSucceeded" "Unknown" It can be used as a confirmation that the PipelineRun is still running.
TaskRunFailedEventV1 is sent for TaskRuns with "ConditionSucceeded" "False".
TaskRunRunningEventV1 is sent for TaskRuns with "ConditionSucceeded" "Unknown" once the TaskRun is validated and Pod created.
TaskRunStartedEventV1 is sent for TaskRuns with "ConditionSucceeded" "Unknown" the first time they are picked up by the reconciler.
TaskRunSuccessfulEventV1 is sent for TaskRuns with "ConditionSucceeded" "True".
TaskRunUnknownEventV1 is sent for TaskRuns with "ConditionSucceeded" "Unknown" It can be used as a confirmation that the TaskRun is still running.
# Structs
CloudClient is a wrapper of CloudEvents client and implements addCount and decreaseCount.
FakeClient is a fake CloudEvent client for unit testing Holding a pointer to the behaviour allows to change the behaviour of a client.
FakeClientBehaviour defines how the client will behave.
TektonCloudEventData type is used to marshal and unmarshal the payload of a Tekton cloud event.
# Interfaces
CEClient wraps the `Client` interface from github.com/cloudevents/sdk-go/v2/cloudevents and has methods to count the cloud events being sent, those methods are for testing purposes.
# Type aliases
TektonEventType holds the types of cloud events sent by Tekton.