Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventFromJSON ¶
NewEventFromJSON creates a CloudEvent v1.0 from JSON string data, optionally merging additional JSON data into the event payload. Returns the serialized CloudEvent bytes.
func Process ¶
func Process(tokenProvider gcp.OIDCTokenProvider, generalConfig *config.GeneralConfigOptions, ctx EventContext) error
Process publishes a plain CloudEvent TaskRunFinished event via GCP Pub/Sub, using the original event format with taskName, stageName, and outcome in the data payload.
func ProcessCDE ¶ added in v1.499.0
func ProcessCDE(tokenProvider gcp.OIDCTokenProvider, generalConfig *config.GeneralConfigOptions, ctx EventContext) error
ProcessCDE publishes a CDEvents TaskRunFinished event via GCP Pub/Sub.
Types ¶
type EventContext ¶
EventContext carries step-level data from the generated template into the eventing package.
Click to show internal directories.
Click to hide internal directories.