Help us shape the future of Go! Take the 2026 Go Developer Survey

eventing

package
v1.538.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventFromJSON

func NewEventFromJSON(eventType, source, jsonData, additionalJSON string) ([]byte, error)

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

type EventContext

type EventContext struct {
	StepName   string
	StageName  string
	ErrorCode  string
	PipelineID string
}

EventContext carries step-level data from the generated template into the eventing package.

Jump to

Keyboard shortcuts

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