Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata key for holding an arbitrary identification token #544

Merged
merged 1 commit into from
May 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apis/event/v1beta1/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ const (
MetaChecksumKey string = "checksum"
// MetaDigestKey is the key used to hold the source artifact digest.
MetaDigestKey string = "digest"
// MetaTokenKey is the key used to hold an arbitrary token whose contents
matheuscscp marked this conversation as resolved.
Show resolved Hide resolved
matheuscscp marked this conversation as resolved.
Show resolved Hide resolved
// are defined on a per-event-emitter basis for uniquely identifying the
// contents of the event payload. For example, it could be the generation
// of an object, or the hash of a set of configurations, or even a
// base64-encoded set of configurations. This is useful for example for
// rate limiting the events.
MetaTokenKey string = "token"
// MetaCommitStatusKey is the key used to signal a Git commit status event.
MetaCommitStatusKey string = "commit_status"
// MetaCommitStatusUpdateValue is the value of MetaCommitStatusKey
Expand Down