interceptors

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 20

Documentation

Index

Constants

View Source
const (
	CoreInterceptorsHost = "tekton-triggers-core-interceptors"
)

Variables

This section is empty.

Functions

func Canonical added in v0.11.0

func Canonical(h map[string][]string) http.Header

Canonical updates the map keys to use the Canonical name

func Execute added in v0.11.0

func Fail added in v0.11.0

Fail constructs a InterceptorResponse that should not continue further processing.

func Failf added in v0.11.0

func Failf(c codes.Code, format string, a ...interface{}) *triggersv1beta1.InterceptorResponse

Failf constructs a InterceptorResponse that should not continue further processing.

func GetInterceptorParams added in v0.10.0

func GetInterceptorParams(i *triggersv1beta1.EventInterceptor) map[string]interface{}

GetInterceptorParams returns InterceptorParams for the current interceptors

func ResolveToURL added in v0.13.0

func ResolveToURL(getter InterceptorGetter, name string) (*apis.URL, error)

ResolveToURL finds an Interceptor's URL.

func UnmarshalParams added in v0.11.0

func UnmarshalParams(ip map[string]interface{}, p interface{}) error

UnmarshalParams unmarshalls the passed in InterceptorParams into the provided param struct

Types

type Interceptor

type Interceptor interface {
	ExecuteTrigger(req *http.Request) (*http.Response, error)
}

Interceptor is the interface that all interceptors implement.

type InterceptorGetter added in v0.13.0

type InterceptorGetter func(name string) (*triggersv1alpha1.ClusterInterceptor, error)

type SecretGetter added in v0.20.0

type SecretGetter interface {
	Get(ctx context.Context, triggerNS string, sr *triggersv1beta1.SecretRef) ([]byte, error)
}

func DefaultSecretGetter added in v0.21.0

func DefaultSecretGetter(getter corev1.SecretsGetter) SecretGetter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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