Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct { Username string `json:"username"` Secret config.SecretSource `json:"secret"` }
func (Authentication) CheckSignature ¶
func (a Authentication) CheckSignature(req webhook.ValidatingRequest) error
CheckSignature will read the webhook authentication header and will check if the provided username and secret match the ones in the request.
func (Authentication) Validate ¶
func (a Authentication) Validate() error
Validate checks if the Basic configuration is valid. It requires that if username is set also secret must be set.
Click to show internal directories.
Click to hide internal directories.