Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSupportedEvents = webhook.Events{ Supported: map[string]webhook.Event{ // contains filtered or unexported fields }, GetEventType: webhook.GetEventTypeByPath(webhookEventPath), }
Functions ¶
func AddSourceToRouter ¶
func AddSourceToRouter( ctx context.Context, cfg config.GenericConfig, pg pipeline.IPipelineGroup, router *swagger.Router[fiber.Handler, fiber.Router], ) error
Types ¶
type Config ¶
type Config struct {
Authentication ValidationConfig `json:"authentication"`
WebhookPath string `json:"webhookPath"`
}
type ValidationConfig ¶
type ValidationConfig struct {
Secret config.SecretSource `json:"secret"`
HeaderName string `json:"-"`
}
func (ValidationConfig) CheckSignature ¶
func (h ValidationConfig) CheckSignature(req webhook.ValidatingRequest) error
CheckSignature will read the webhook signature header and the given secret for validating the webhook payload.
Click to show internal directories.
Click to hide internal directories.