Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitbucketCloudParser ¶
type BitbucketCloudParser struct{}
func (*BitbucketCloudParser) GetEventTypeHeader ¶
func (p *BitbucketCloudParser) GetEventTypeHeader() string
func (*BitbucketCloudParser) ParsePayload ¶
func (p *BitbucketCloudParser) ParsePayload(eventType string, body []byte) (any, error)
func (*BitbucketCloudParser) PopulateEvent ¶
func (p *BitbucketCloudParser) PopulateEvent(event *info.Event, parsedEvent any) error
type BitbucketDataCenterParser ¶
type BitbucketDataCenterParser struct{}
func (*BitbucketDataCenterParser) GetEventTypeHeader ¶
func (p *BitbucketDataCenterParser) GetEventTypeHeader() string
func (*BitbucketDataCenterParser) ParsePayload ¶
func (p *BitbucketDataCenterParser) ParsePayload(eventType string, body []byte) (any, error)
func (*BitbucketDataCenterParser) PopulateEvent ¶
func (p *BitbucketDataCenterParser) PopulateEvent(event *info.Event, parsedEvent any) error
type GitHubParser ¶
type GitHubParser struct{}
func (*GitHubParser) GetEventTypeHeader ¶
func (p *GitHubParser) GetEventTypeHeader() string
func (*GitHubParser) ParsePayload ¶
func (p *GitHubParser) ParsePayload(eventType string, body []byte) (any, error)
func (*GitHubParser) PopulateEvent ¶
func (p *GitHubParser) PopulateEvent(event *info.Event, parsedEvent any) error
type GitHubParserWithToken ¶
type GitHubParserWithToken struct {
Token string
}
GitHubParserWithToken extends GitHubParser with API enrichment capabilities.
func (*GitHubParserWithToken) GetEventTypeHeader ¶
func (p *GitHubParserWithToken) GetEventTypeHeader() string
func (*GitHubParserWithToken) ParsePayload ¶
func (p *GitHubParserWithToken) ParsePayload(eventType string, body []byte) (any, error)
func (*GitHubParserWithToken) PopulateEvent ¶
func (p *GitHubParserWithToken) PopulateEvent(event *info.Event, parsedEvent any) error
type GitLabParser ¶
type GitLabParser struct{}
func (*GitLabParser) GetEventTypeHeader ¶
func (p *GitLabParser) GetEventTypeHeader() string
func (*GitLabParser) ParsePayload ¶
func (p *GitLabParser) ParsePayload(eventType string, body []byte) (any, error)
func (*GitLabParser) PopulateEvent ¶
func (p *GitLabParser) PopulateEvent(event *info.Event, parsedEvent any) error
type GiteaParser ¶
type GiteaParser struct{}
func (*GiteaParser) GetEventTypeHeader ¶
func (p *GiteaParser) GetEventTypeHeader() string
func (*GiteaParser) ParsePayload ¶
func (p *GiteaParser) ParsePayload(eventType string, body []byte) (any, error)
func (*GiteaParser) PopulateEvent ¶
func (p *GiteaParser) PopulateEvent(event *info.Event, parsedEvent any) error
type WebhookParser ¶
type WebhookParser interface {
// ParsePayload parses the webhook payload into a provider-specific event structure.
ParsePayload(eventType string, body []byte) (any, error)
// PopulateEvent extracts common fields from the provider-specific event structure
// and populates the info.Event with the appropriate values.
PopulateEvent(event *info.Event, parsedEvent any) error
// GetEventTypeHeader returns the header name used by this provider to indicate
// the event type (e.g., "X-GitHub-Event", "X-Gitlab-Event").
GetEventTypeHeader() string
}
WebhookParser defines the interface for provider-specific CEL webhook parsing.
Click to show internal directories.
Click to hide internal directories.