-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from chainguard-dev/create-pull-request/patch
Export mono/sdk: refs/heads/main
- Loading branch information
Showing
4 changed files
with
599 additions
and
568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
Copyright 2024 Chainguard, Inc. | ||
SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package v1 | ||
|
||
// CloudEventsExtension implements chainguard.dev/sdk/events/Extendable.CloudEventsExtension | ||
func (x *Repo) CloudEventsExtension(key string) (string, bool) { | ||
switch key { | ||
case "group": | ||
return x.GetId(), true | ||
default: | ||
return "", false | ||
} | ||
} | ||
|
||
// CloudEventsSubject implements chainguard.dev/sdk/events/Eventable.CloudEventsSubject. | ||
func (x *Repo) CloudEventsSubject() string { | ||
return x.GetId() | ||
} |
Oops, something went wrong.