Documentation ¶
Index ¶
- Constants
- func Canonical(h map[string][]string) http.Header
- func Execute(ctx context.Context, client *http.Client, ...) (*triggersv1beta1.InterceptorResponse, error)
- func Fail(c codes.Code, msg string) *triggersv1beta1.InterceptorResponse
- func Failf(c codes.Code, format string, a ...interface{}) *triggersv1beta1.InterceptorResponse
- func GetInterceptorParams(i *triggersv1beta1.EventInterceptor) map[string]interface{}
- func ResolveToURL(getter InterceptorGetter, name string) (*apis.URL, error)
- func UnmarshalParams(ip map[string]interface{}, p interface{}) error
- type Interceptor
- type InterceptorGetter
- type SecretGetter
Constants ¶
View Source
const (
CoreInterceptorsHost = "tekton-triggers-core-interceptors"
)
Variables ¶
This section is empty.
Functions ¶
func Execute ¶ added in v0.11.0
func Execute(ctx context.Context, client *http.Client, req *triggersv1beta1.InterceptorRequest, url string) (*triggersv1beta1.InterceptorResponse, error)
func Fail ¶ added in v0.11.0
func Fail(c codes.Code, msg string) *triggersv1beta1.InterceptorResponse
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
UnmarshalParams unmarshalls the passed in InterceptorParams into the provided param struct
Types ¶
type Interceptor ¶
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
Click to show internal directories.
Click to hide internal directories.