Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
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.