cel

package
v0.0.0-...-481a513 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInterceptor

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

func (w *Interceptor) ExecuteTrigger(request *http.Request) (*http.Response, error)

ExecuteTrigger is an implementation of the Interceptor interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL