Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterceptor ¶
func NewInterceptor(cel *triggersv1.CELInterceptor, k kubernetes.Interface, ns string, l *zap.SugaredLogger) interceptors.Interceptor
NewInterceptor creates a prepopulated Interceptor.
Types ¶
type Interceptor ¶
type Interceptor struct { KubeClientSet kubernetes.Interface Logger *zap.SugaredLogger CEL *triggersv1.CELInterceptor EventListenerNamespace string }
Interceptor implements a CEL based interceptor that uses CEL expressions against the incoming body and headers to match, if the expression returns a true value, then the interception is "successful".
func (*Interceptor) ExecuteTrigger ¶
ExecuteTrigger is an implementation of the Interceptor interface.
Click to show internal directories.
Click to hide internal directories.