cel

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 19 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 {
	Logger *zap.SugaredLogger
	CEL    *triggersv1.CELInterceptor
}

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