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 PublishTaskRunFinishedCDEvent ¶ added in v1.503.0
func PublishTaskRunFinishedCDEvent(tokenProvider gcp.OIDCTokenProvider, generalConfig *config.GeneralConfigOptions, ctx EventContext) error
PublishTaskRunFinishedCDEvent publishes a CDEvents TaskRunFinished event via GCP Pub/Sub.
func PublishTaskRunFinishedEvent ¶ added in v1.503.0
func PublishTaskRunFinishedEvent(tokenProvider gcp.OIDCTokenProvider, generalConfig *config.GeneralConfigOptions, ctx EventContext) error
PublishTaskRunFinishedEvent publishes a plain CloudEvent TaskRunFinished event via GCP Pub/Sub, using the original event format with taskName, stageName, and outcome in the data payload.
Types ¶
Click to show internal directories.
Click to hide internal directories.