events

package
v1.379.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

func NewEvent

func NewEvent(eventType, eventSource 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)

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

Jump to

Keyboard shortcuts

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