events

package
v1.491.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUUID added in v1.401.0

func GetUUID(pipelineIdentifier string) string

func NewEventTaskRunFinished added in v1.490.0

func NewEventTaskRunFinished(eventTypePrefix, eventSource string, payload PayloadTaskRunFinished) ([]byte, error)

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func NewEvent

func NewEvent(eventType, eventSource string, uuidString string) Event

func (*Event) AddToCloudEventData added in v1.362.0

func (e *Event) AddToCloudEventData(additionalDataString string) error

func (Event) Create

func (e Event) Create(data any, opts ...Option) Event

func (Event) CreateWithJSONData

func (e Event) CreateWithJSONData(data string, opts ...Option) (Event, error)

func (Event) ToBytes

func (e Event) ToBytes() ([]byte, error)

func (*Event) ToBytesWithoutEscapeHTML added in v1.455.0

func (e *Event) ToBytesWithoutEscapeHTML() ([]byte, error)

type EventData

type EventData struct {
	URL           string `json:"url"`
	CommitId      string `json:"commitId"`
	RepositoryURL string `json:"repositoryUrl"`
}

type Option

type Option func(o *cloudevents.EventContextV1)

func WithID

func WithID(id string) Option

func WithType

func WithType(etype string) Option

type PayloadTaskRunFinished added in v1.490.0

type PayloadTaskRunFinished struct {
	TaskName  string `json:"taskName"`
	StageName string `json:"stageName"`
	Outcome   string `json:"outcome"`
}

func NewPayloadTaskRunFinished added in v1.490.0

func NewPayloadTaskRunFinished(stageName, taskName, returnCode string) PayloadTaskRunFinished

Jump to

Keyboard shortcuts

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