eventing

package
v1.495.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 10 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 Process

func Process(tokenProvider gcp.OIDCTokenProvider, generalConfig *config.GeneralConfigOptions, ctx EventContext) error

Process is the single entry point for publishing events from generated steps. It takes an EventContext with step-level data and handles event creation and publishing.

Types

type EventContext

type EventContext struct {
	StepName  string
	StageName string
	ErrorCode 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