Documentation ¶
Index ¶
Constants ¶
View Source
const (
OKToTestCommentRegexp = `(^|\n)\/ok-to-test(\r\n|\r|\n|$)`
)
Variables ¶
View Source
var ErrInvalidContentType = errors.New("form parameter encoding not supported, please change the hook to send JSON payloads")
ErrInvalidContentType is returned when the content-type is not a JSON body.
Functions ¶
func MatchRegexp ¶ added in v0.23.0
Types ¶
type Interceptor ¶
type Interceptor struct {
SecretGetter interceptors.SecretGetter
}
func NewInterceptor ¶
func NewInterceptor(sg interceptors.SecretGetter) *Interceptor
func (*Interceptor) Process ¶ added in v0.11.0
func (w *Interceptor) Process(ctx context.Context, r *triggersv1.InterceptorRequest) *triggersv1.InterceptorResponse
type OwnersConfig ¶ added in v0.23.0
Click to show internal directories.
Click to hide internal directories.