package
0.9.2
Repository: https://github.com/mattmoor/pipeline.git
Documentation: pkg.go.dev

# Functions

Get extracts the cloudEventClient client from the context.
GetCloudEventDeliveryCompareOptions returns compare options to sort and compare a list of CloudEventDelivery.
InitializeCloudEvents initializes the CloudEvents part of the TaskRunStatus from a slice of PipelineResources.
NewFakeClient is a FakeClient factory, it returns a client for the target.
NewTektonCloudEventData returns a new instance of NewTektonCloudEventData.
SendCloudEvent sends a Cloud Event to the specified SinkURI.
SendCloudEvents is used by the TaskRun controller to send cloud events once the TaskRun is complete.
SendTaskRunCloudEvent sends a cloud event for a TaskRun.
WithClient adds to the context a fake client with the desired behaviour.

# Constants

TektonTaskRunFailedV1 is sent for TaskRuns with "ConditionSucceeded" "False".
TektonTaskRunSuccessfulV1 is sent for TaskRuns with "ConditionSucceeded" "True".
TektonTaskRunUnknownV1 is sent for TaskRuns with "ConditionSucceeded" "Unknown".

# Structs

CECKey is used to associate the CloudEventClient inside the context.Context.
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.

# Type aliases

CEClient matches the `Client` interface from github.com/cloudevents/sdk-go/pkg/cloudevents.
TektonEventType holds the types of cloud events sent by Tekton.