events

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArtifactPubEvent

func CreateArtifactPubEvent(ctx context.Context, key string) (*cloudevents.Event, error)

CreateArtifactPubEvent creates a NewArtifactPublishedEvent CDEvent that is published as a CloudEvent. The key is the sha256 of the *processor.Document bytes that will be used to retrieve the processor.Document stored in the blob store. TODO (pxp928): change to use URI Reference field once the PR merges: https://github.com/cdevents/spec/pull/171

func DecodeEventSubject

func DecodeEventSubject(ctx context.Context, collectedEvent []byte) (string, error)

DecodeEventSubject takes in the collectedEvent bytes and converts it back into a CloudEvent to retrieve the necessary fields. The returned value is the subject of the event.

func GetDocRef added in v0.6.0

func GetDocRef(blob []byte) string

GetDocRef returns the Document Reference of a blob; i.e. the blob store key for this blob.

func GetKey

func GetKey(blob []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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