v1alpha1

package
Version: v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0 Imports: 30 Imported by: 100

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the triggers v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/tektoncd/triggers/pkg/apis/triggers +k8s:defaulter-gen=TypeMeta +groupName=triggers.tekton.dev

Index

Constants

View Source
const (
	// ServiceExists is the ConditionType set on the EventListener, which
	// specifies Service existence.
	ServiceExists apis.ConditionType = "Service"
	// DeploymentExists is the ConditionType set on the EventListener, which
	// specifies Deployment existence.
	DeploymentExists apis.ConditionType = "Deployment"
)

The conditions that are internally resolved by the EventListener reconciler

Variables

View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var ErrNilURL = errors.New("interceptor URL was nil")
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: triggers.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func ParseTriggerID added in v0.10.0

func ParseTriggerID(triggerID string) (namespace, name string)

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type BitbucketInterceptor added in v0.6.0

type BitbucketInterceptor struct {
	SecretRef *SecretRef `json:"secretRef,omitempty"`
	// +listType=atomic
	EventTypes []string `json:"eventTypes,omitempty"`
}

BitbucketInterceptor provides a webhook to intercept and pre-process events

func (*BitbucketInterceptor) DeepCopy added in v0.6.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BitbucketInterceptor.

func (*BitbucketInterceptor) DeepCopyInto added in v0.6.0

func (in *BitbucketInterceptor) DeepCopyInto(out *BitbucketInterceptor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CELInterceptor added in v0.2.0

type CELInterceptor struct {
	Filter string `json:"filter,omitempty"`
	// +listType=atomic
	Overlays []CELOverlay `json:"overlays,omitempty"`
}

CELInterceptor provides a webhook to intercept and pre-process events

func (*CELInterceptor) DeepCopy added in v0.2.0

func (in *CELInterceptor) DeepCopy() *CELInterceptor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CELInterceptor.

func (*CELInterceptor) DeepCopyInto added in v0.2.0

func (in *CELInterceptor) DeepCopyInto(out *CELInterceptor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CELOverlay added in v0.3.0

type CELOverlay struct {
	Key        string `json:"key,omitempty"`
	Expression string `json:"expression,omitempty"`
}

CELOverlay provides a way to modify the request body using DeprecatedCEL expressions

func (*CELOverlay) DeepCopy added in v0.3.0

func (in *CELOverlay) DeepCopy() *CELOverlay

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CELOverlay.

func (*CELOverlay) DeepCopyInto added in v0.3.0

func (in *CELOverlay) DeepCopyInto(out *CELOverlay)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClientConfig added in v0.13.0

type ClientConfig struct {
	// CaBundle is a PEM encoded CA bundle which will be used to validate the clusterinterceptor server certificate
	CaBundle []byte `json:"caBundle,omitempty"`
	// URL is a fully formed URL pointing to the interceptor
	// Mutually exclusive with Service
	URL *apis.URL `json:"url,omitempty"`

	// Service is a reference to a Service object where the interceptor is running
	// Mutually exclusive with URL
	Service *ServiceReference `json:"service,omitempty"`
}

ClientConfig describes how a client can communicate with the Interceptor

func (*ClientConfig) DeepCopy added in v0.13.0

func (in *ClientConfig) DeepCopy() *ClientConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientConfig.

func (*ClientConfig) DeepCopyInto added in v0.13.0

func (in *ClientConfig) DeepCopyInto(out *ClientConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterInterceptor added in v0.13.0

type ClusterInterceptor struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ClusterInterceptorSpec `json:"spec"`
	// +optional
	Status ClusterInterceptorStatus `json:"status"`
}

+genclient +genclient:nonNamespaced +genreconciler:krshapedlogic=false +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true ClusterInterceptor describes a pluggable interceptor including configuration such as the fields it accepts and its deployment address. The type is based on the Validating/MutatingWebhookConfiguration types for configuring AdmissionWebhooks

func (*ClusterInterceptor) DeepCopy added in v0.13.0

func (in *ClusterInterceptor) DeepCopy() *ClusterInterceptor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInterceptor.

func (*ClusterInterceptor) DeepCopyInto added in v0.13.0

func (in *ClusterInterceptor) DeepCopyInto(out *ClusterInterceptor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterInterceptor) DeepCopyObject added in v0.13.0

func (in *ClusterInterceptor) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ClusterInterceptor) ResolveAddress added in v0.13.0

func (it *ClusterInterceptor) ResolveAddress() (*apis.URL, error)

ResolveAddress returns the URL where the interceptor is running using its clientConfig

func (*ClusterInterceptor) SetDefaults added in v0.13.0

func (it *ClusterInterceptor) SetDefaults(ctx context.Context)

SetDefaults sets the defaults on the object.

func (*ClusterInterceptor) Validate added in v0.13.0

func (it *ClusterInterceptor) Validate(ctx context.Context) *apis.FieldError

Validate ClusterInterceptor

type ClusterInterceptorList added in v0.13.0

type ClusterInterceptorList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterInterceptor `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object ClusterInterceptorList contains a list of ClusterInterceptor We don't use this but it's required for certain codegen features.

func (*ClusterInterceptorList) DeepCopy added in v0.13.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInterceptorList.

func (*ClusterInterceptorList) DeepCopyInto added in v0.13.0

func (in *ClusterInterceptorList) DeepCopyInto(out *ClusterInterceptorList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterInterceptorList) DeepCopyObject added in v0.13.0

func (in *ClusterInterceptorList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterInterceptorSpec added in v0.13.0

type ClusterInterceptorSpec struct {
	ClientConfig ClientConfig `json:"clientConfig"`
}

ClusterInterceptorSpec describes the Spec for an ClusterInterceptor

func (*ClusterInterceptorSpec) DeepCopy added in v0.13.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInterceptorSpec.

func (*ClusterInterceptorSpec) DeepCopyInto added in v0.13.0

func (in *ClusterInterceptorSpec) DeepCopyInto(out *ClusterInterceptorSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterInterceptorStatus added in v0.13.0

type ClusterInterceptorStatus struct {
	duckv1.Status `json:",inline"`

	// ClusterInterceptor is Addressable and exposes the URL where the Interceptor is running
	duckv1.AddressStatus `json:",inline"`
}

ClusterInterceptorStatus holds the status of the ClusterInterceptor +k8s:deepcopy-gen=true

func (*ClusterInterceptorStatus) DeepCopy added in v0.13.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInterceptorStatus.

func (*ClusterInterceptorStatus) DeepCopyInto added in v0.13.0

func (in *ClusterInterceptorStatus) DeepCopyInto(out *ClusterInterceptorStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterTriggerBinding added in v0.3.0

type ClusterTriggerBinding struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the ClusterTriggerBinding from the client
	// +optional
	Spec TriggerBindingSpec `json:"spec,omitempty"`

	// +optional
	Status TriggerBindingStatus `json:"status,omitempty"`
}

ClusterTriggerBinding is a TriggerBinding with a cluster scope. ClusterTriggerBindings are used to represent TriggerBindings that should be publicly addressable from any namespace in the cluster.

func (*ClusterTriggerBinding) Copy added in v0.3.0

func (*ClusterTriggerBinding) DeepCopy added in v0.3.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTriggerBinding.

func (*ClusterTriggerBinding) DeepCopyInto added in v0.3.0

func (in *ClusterTriggerBinding) DeepCopyInto(out *ClusterTriggerBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterTriggerBinding) DeepCopyObject added in v0.3.0

func (in *ClusterTriggerBinding) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ClusterTriggerBinding) SetDefaults added in v0.3.0

func (ctb *ClusterTriggerBinding) SetDefaults(ctx context.Context)

SetDefaults initializes ClusterTriggerBinding ctb with its default values.

func (*ClusterTriggerBinding) TriggerBindingMetadata added in v0.3.0

func (ctb *ClusterTriggerBinding) TriggerBindingMetadata() metav1.ObjectMeta

func (*ClusterTriggerBinding) TriggerBindingSpec added in v0.3.0

func (ctb *ClusterTriggerBinding) TriggerBindingSpec() TriggerBindingSpec

func (*ClusterTriggerBinding) Validate added in v0.3.0

func (ctb *ClusterTriggerBinding) Validate(ctx context.Context) *apis.FieldError

type ClusterTriggerBindingList added in v0.3.0

type ClusterTriggerBindingList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterTriggerBinding `json:"items"`
}

ClusterTriggerBindingList contains a list of ClusterTriggerBinding

func (*ClusterTriggerBindingList) DeepCopy added in v0.3.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTriggerBindingList.

func (*ClusterTriggerBindingList) DeepCopyInto added in v0.3.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterTriggerBindingList) DeepCopyObject added in v0.3.0

func (in *ClusterTriggerBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CustomResource added in v0.12.0

type CustomResource struct {
	runtime.RawExtension `json:",inline"`
}

func (*CustomResource) DeepCopy added in v0.12.0

func (in *CustomResource) DeepCopy() *CustomResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResource.

func (*CustomResource) DeepCopyInto added in v0.12.0

func (in *CustomResource) DeepCopyInto(out *CustomResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EventInterceptor

type EventInterceptor = TriggerInterceptor

EventInterceptor provides a hook to intercept and pre-process events

type EventListener

type EventListener struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec holds the desired state of the EventListener from the client
	// +optional
	Spec EventListenerSpec `json:"spec"`
	// +optional
	Status EventListenerStatus `json:"status,omitempty"`
}

EventListener exposes a service to accept HTTP event payloads.

+k8s:openapi-gen=true

func (*EventListener) DeepCopy

func (in *EventListener) DeepCopy() *EventListener

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventListener.

func (*EventListener) DeepCopyInto

func (in *EventListener) DeepCopyInto(out *EventListener)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*EventListener) DeepCopyObject

func (in *EventListener) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*EventListener) GetGroupVersionKind added in v0.16.0

func (el *EventListener) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind implements kmeta.OwnerRefable

func (*EventListener) SetDefaults

func (el *EventListener) SetDefaults(ctx context.Context)

SetDefaults sets the defaults on the object.

func (*EventListener) Validate

func (e *EventListener) Validate(ctx context.Context) *apis.FieldError

Validate EventListener.

type EventListenerBinding

type EventListenerBinding = TriggerSpecBinding

EventListenerBinding refers to a particular TriggerBinding or ClusterTriggerBindingresource.

type EventListenerConfig

type EventListenerConfig struct {
	// GeneratedResourceName is the name given to all resources reconciled by
	// the EventListener
	GeneratedResourceName string `json:"generatedName"`
}

EventListenerConfig stores configuration for resources generated by the EventListener

func (*EventListenerConfig) DeepCopy

func (in *EventListenerConfig) DeepCopy() *EventListenerConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventListenerConfig.

func (*EventListenerConfig) DeepCopyInto

func (in *EventListenerConfig) DeepCopyInto(out *EventListenerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EventListenerList

type EventListenerList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []EventListener `json:"items"`
}

EventListenerList contains a list of TriggerBinding

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*EventListenerList) DeepCopy

func (in *EventListenerList) DeepCopy() *EventListenerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventListenerList.

func (*EventListenerList) DeepCopyInto

func (in *EventListenerList) DeepCopyInto(out *EventListenerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*EventListenerList) DeepCopyObject

func (in *EventListenerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type EventListenerSpec

type EventListenerSpec struct {
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
	// +listType=atomic
	Triggers          []EventListenerTrigger `json:"triggers"`
	NamespaceSelector NamespaceSelector      `json:"namespaceSelector,omitempty"`
	LabelSelector     *metav1.LabelSelector  `json:"labelSelector,omitempty"`
	Resources         Resources              `json:"resources,omitempty"`
}

EventListenerSpec defines the desired state of the EventListener, represented by a list of Triggers.

func (*EventListenerSpec) DeepCopy

func (in *EventListenerSpec) DeepCopy() *EventListenerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventListenerSpec.

func (*EventListenerSpec) DeepCopyInto

func (in *EventListenerSpec) DeepCopyInto(out *EventListenerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EventListenerStatus

type EventListenerStatus struct {
	duckv1.Status `json:",inline"`

	// EventListener is Addressable. It currently exposes the service DNS
	// address of the the EventListener sink
	duckv1alpha1.AddressStatus `json:",inline"`

	// Configuration stores configuration for the EventListener service
	Configuration EventListenerConfig `json:"configuration"`
}

EventListenerStatus holds the status of the EventListener +k8s:deepcopy-gen=true

func (*EventListenerStatus) DeepCopy

func (in *EventListenerStatus) DeepCopy() *EventListenerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventListenerStatus.

func (*EventListenerStatus) DeepCopyInto

func (in *EventListenerStatus) DeepCopyInto(out *EventListenerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*EventListenerStatus) GetCondition

func (els *EventListenerStatus) GetCondition(t apis.ConditionType) *apis.Condition

GetCondition returns the Condition matching the given type.

func (*EventListenerStatus) InitializeConditions

func (els *EventListenerStatus) InitializeConditions()

InitializeConditions will set all conditions in eventListenerCondSet to false for the EventListener. This does not use the InitializeCondition() provided by the conditionsImpl to avoid setting the happy condition. This is a local change and needs to be persisted to the K8s API elsewhere.

func (*EventListenerStatus) SetAddress

func (els *EventListenerStatus) SetAddress(hostname string)

SetAddress sets the address (as part of Addressable contract) and marks the correct condition.

func (*EventListenerStatus) SetCondition

func (els *EventListenerStatus) SetCondition(newCond *apis.Condition)

SetCondition sets the condition, unsetting previous conditions with the same type as necessary. This is a local change and needs to be persisted to the K8s API elsewhere.

func (*EventListenerStatus) SetConditionsForDynamicObjects added in v0.12.0

func (els *EventListenerStatus) SetConditionsForDynamicObjects(conditions v1beta1.Conditions)

func (*EventListenerStatus) SetDeploymentConditions

func (els *EventListenerStatus) SetDeploymentConditions(deploymentConditions []appsv1.DeploymentCondition)

SetDeploymentConditions sets the Deployment conditions on the EventListener, which is a reflection of the actual Deployment status.

func (*EventListenerStatus) SetExistsCondition

func (els *EventListenerStatus) SetExistsCondition(cond apis.ConditionType, err error)

SetExistsCondition simplifies setting the exists conditions on the EventListenerStatus.

func (*EventListenerStatus) SetReadyCondition added in v0.14.0

func (els *EventListenerStatus) SetReadyCondition()

type EventListenerTemplate

type EventListenerTemplate = TriggerSpecTemplate

EventListenerTemplate refers to a particular TriggerTemplate resource.

type EventListenerTrigger

type EventListenerTrigger struct {
	// +listType=atomic
	Bindings   []*EventListenerBinding `json:"bindings,omitempty"`
	Template   *EventListenerTemplate  `json:"template,omitempty"`
	TriggerRef string                  `json:"triggerRef,omitempty"`
	// +optional
	Name string `json:"name,omitempty"`
	// +listType=atomic
	Interceptors []*EventInterceptor `json:"interceptors,omitempty"`
	// ServiceAccountName optionally associates credentials with each trigger;
	// more granular authorization for
	// who is allowed to utilize the associated pipeline
	// vs. defaulting to whatever permissions are associated
	// with the entire EventListener and associated sink facilitates
	// multi-tenant model based scenarios
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

EventListenerTrigger represents a connection between TriggerBinding, Params, and TriggerTemplate; TriggerBinding provides extracted values for TriggerTemplate to then create resources from. TriggerRef can also be provided instead of TriggerBinding, Interceptors and TriggerTemplate

func ToEventListenerTrigger added in v0.7.0

func ToEventListenerTrigger(in TriggerSpec) (EventListenerTrigger, error)

ToEventListenerTrigger converts a TriggerSpec into an EventListenerTrigger. This is primarily for compatibility between CRD and non-CRD types so that underlying libraries can reuse existing code.

func (*EventListenerTrigger) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventListenerTrigger.

func (*EventListenerTrigger) DeepCopyInto

func (in *EventListenerTrigger) DeepCopyInto(out *EventListenerTrigger)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitHubInterceptor added in v0.2.0

type GitHubInterceptor struct {
	SecretRef *SecretRef `json:"secretRef,omitempty"`
	// +listType=atomic
	EventTypes []string `json:"eventTypes,omitempty"`
}

GitHubInterceptor provides a webhook to intercept and pre-process events

func (*GitHubInterceptor) DeepCopy added in v0.2.0

func (in *GitHubInterceptor) DeepCopy() *GitHubInterceptor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubInterceptor.

func (*GitHubInterceptor) DeepCopyInto added in v0.2.0

func (in *GitHubInterceptor) DeepCopyInto(out *GitHubInterceptor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GitLabInterceptor added in v0.2.0

type GitLabInterceptor struct {
	SecretRef *SecretRef `json:"secretRef,omitempty"`
	// +listType=atomic
	EventTypes []string `json:"eventTypes,omitempty"`
}

GitLabInterceptor provides a webhook to intercept and pre-process events

func (*GitLabInterceptor) DeepCopy added in v0.2.0

func (in *GitLabInterceptor) DeepCopy() *GitLabInterceptor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLabInterceptor.

func (*GitLabInterceptor) DeepCopyInto added in v0.2.0

func (in *GitLabInterceptor) DeepCopyInto(out *GitLabInterceptor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InterceptorInterface added in v0.10.0

type InterceptorInterface interface {
	// Process executes the given InterceptorRequest. Simply getting a non-nil InterceptorResponse back is not sufficient
	// to determine if the interceptor processing was successful. Instead use the InterceptorResponse.Status.Continue to
	// see if processing should continue and InterceptorResponse.Status.Code to distinguish between the kinds of errors
	// (i.e user errors vs system errors)
	Process(ctx context.Context, r *InterceptorRequest) *InterceptorResponse
}

type InterceptorKind added in v0.13.0

type InterceptorKind string

InterceptorKind defines the type of Interceptor used by the Trigger.

const (
	// ClusterTaskKind indicates that task type has a cluster scope.
	ClusterInterceptorKind InterceptorKind = "ClusterInterceptor"
)

type InterceptorParams added in v0.13.0

type InterceptorParams struct {
	Name  string               `json:"name"`
	Value apiextensionsv1.JSON `json:"value"`
}

InterceptorParams defines a key-value pair that can be passed on an interceptor

func (*InterceptorParams) DeepCopy added in v0.13.0

func (in *InterceptorParams) DeepCopy() *InterceptorParams

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterceptorParams.

func (*InterceptorParams) DeepCopyInto added in v0.13.0

func (in *InterceptorParams) DeepCopyInto(out *InterceptorParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InterceptorRef added in v0.13.0

type InterceptorRef struct {
	// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name,omitempty"`
	// InterceptorKind indicates the kind of the Interceptor, namespaced or cluster scoped.
	// Currently only InterceptorKind is ClusterInterceptor, so the only valid value
	// is the default one
	// +optional
	Kind InterceptorKind `json:"kind,omitempty"`
	// API version of the referent
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`
}

InterceptorRef provides a Reference to a ClusterInterceptor

func (*InterceptorRef) DeepCopy added in v0.13.0

func (in *InterceptorRef) DeepCopy() *InterceptorRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterceptorRef.

func (*InterceptorRef) DeepCopyInto added in v0.13.0

func (in *InterceptorRef) DeepCopyInto(out *InterceptorRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InterceptorRequest added in v0.10.0

type InterceptorRequest struct {
	// Body is the incoming HTTP event body. We use a "string" representation of the JSON body
	// in order to preserve the body exactly as it was sent (including spaces etc.). This is necessary
	// for some interceptors e.g. GitHub for validating the body with a signature. While []byte can also
	// store an exact representation of the body, `json.Marshal` will compact []byte to a base64 encoded
	// string which means that we will lose the spaces any time we marshal this struct.
	Body string `json:"body,omitempty"`

	// Header are the headers for the incoming HTTP event
	Header map[string][]string `json:"header,omitempty"`

	// Extensions are extra values that are added by previous interceptors in a chain
	Extensions map[string]interface{} `json:"extensions,omitempty"`

	// InterceptorParams are the user specified params for interceptor in the Trigger
	InterceptorParams map[string]interface{} `json:"interceptor_params,omitempty"`

	// Context contains additional metadata about the event being processed
	Context *TriggerContext `json:"context"`
}

Do not generate DeepCopy(). See #827 +k8s:deepcopy-gen=false

type InterceptorResponse added in v0.10.0

type InterceptorResponse struct {
	// Extensions are additional fields that is added to the interceptor event.
	Extensions map[string]interface{} `json:"extensions,omitempty"`
	// Continue indicates if the EventListener should continue processing the Trigger or not
	Continue bool `json:"continue"` // Don't add omitempty -- it  will remove the continue field when the value is false.
	// Status is an Error status containing details on any interceptor processing errors
	Status Status `json:"status"`
}

Do not generate Deepcopy(). See #827 +k8s:deepcopy-gen=false

type KubernetesResource added in v0.9.0

type KubernetesResource struct {
	Replicas           *int32             `json:"replicas,omitempty"`
	ServiceType        corev1.ServiceType `json:"serviceType,omitempty"`
	duckv1.WithPodSpec `json:"spec,omitempty"`
}

func (*KubernetesResource) DeepCopy added in v0.9.0

func (in *KubernetesResource) DeepCopy() *KubernetesResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesResource.

func (*KubernetesResource) DeepCopyInto added in v0.9.0

func (in *KubernetesResource) DeepCopyInto(out *KubernetesResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespaceSelector added in v0.10.0

type NamespaceSelector struct {
	// List of namespace names.
	// +listType=atomic
	MatchNames []string `json:"matchNames,omitempty"`
}

NamespaceSelector is a selector for selecting either all namespaces or a list of namespaces. +k8s:openapi-gen=true

func (*NamespaceSelector) DeepCopy added in v0.10.0

func (in *NamespaceSelector) DeepCopy() *NamespaceSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceSelector.

func (*NamespaceSelector) DeepCopyInto added in v0.10.0

func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Param added in v0.5.0

type Param struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Param defines a string value to be used for a ParamSpec with the same name.

func (*Param) DeepCopy added in v0.5.0

func (in *Param) DeepCopy() *Param

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Param.

func (*Param) DeepCopyInto added in v0.5.0

func (in *Param) DeepCopyInto(out *Param)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ParamSpec added in v0.5.0

type ParamSpec struct {
	// Name declares the name by which a parameter is referenced.
	Name string `json:"name"`
	// Description is a user-facing description of the parameter that may be
	// used to populate a UI.
	// +optional
	Description string `json:"description,omitempty"`
	// Default is the value a parameter takes if no input value via a Param is supplied.
	// +optional
	Default *string `json:"default,omitempty"`
}

ParamSpec defines an arbitrary named input whose value can be supplied by a `Param`.

func (*ParamSpec) DeepCopy added in v0.5.0

func (in *ParamSpec) DeepCopy() *ParamSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamSpec.

func (*ParamSpec) DeepCopyInto added in v0.5.0

func (in *ParamSpec) DeepCopyInto(out *ParamSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Resources added in v0.9.0

type Resources struct {
	KubernetesResource *KubernetesResource `json:"kubernetesResource,omitempty"`
	CustomResource     *CustomResource     `json:"customResource,omitempty"`
}

func (*Resources) DeepCopy added in v0.9.0

func (in *Resources) DeepCopy() *Resources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.

func (*Resources) DeepCopyInto added in v0.9.0

func (in *Resources) DeepCopyInto(out *Resources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SecretRef added in v0.2.0

type SecretRef struct {
	SecretKey  string `json:"secretKey,omitempty"`
	SecretName string `json:"secretName,omitempty"`
}

SecretRef contains the information required to reference a single secret string This is needed because the other secretRef types are not cross-namespace and do not actually contain the "SecretName" field, which allows us to access a single secret value.

func (*SecretRef) DeepCopy added in v0.2.0

func (in *SecretRef) DeepCopy() *SecretRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.

func (*SecretRef) DeepCopyInto added in v0.2.0

func (in *SecretRef) DeepCopyInto(out *SecretRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceReference added in v0.13.0

type ServiceReference struct {
	// Name is the name of the service
	Name string `json:"name"`

	// Namespace is the namespace of the service
	Namespace string `json:"namespace"`

	// Path is an optional URL path
	// +optional
	Path string `json:"path,omitempty"`

	// Port is a valid port number
	Port *int32 `json:"port,omitempty"`
}

ServiceReference is a reference to a Service object with an optional path

func (*ServiceReference) DeepCopy added in v0.13.0

func (in *ServiceReference) DeepCopy() *ServiceReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.

func (*ServiceReference) DeepCopyInto added in v0.13.0

func (in *ServiceReference) DeepCopyInto(out *ServiceReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Status added in v0.11.0

type Status struct {
	// The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
	Code codes.Code `json:"code,omitempty"`
	// A developer-facing error message, which should be in English.
	Message string `json:"message,omitempty"`
}

func (*Status) DeepCopy added in v0.11.0

func (in *Status) DeepCopy() *Status

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.

func (*Status) DeepCopyInto added in v0.11.0

func (in *Status) DeepCopyInto(out *Status)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Status) Err added in v0.11.0

func (s Status) Err() StatusError

type StatusError added in v0.11.0

type StatusError struct {
	// contains filtered or unexported fields
}

func (*StatusError) DeepCopy added in v0.11.0

func (in *StatusError) DeepCopy() *StatusError

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusError.

func (*StatusError) DeepCopyInto added in v0.11.0

func (in *StatusError) DeepCopyInto(out *StatusError)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (StatusError) Error added in v0.11.0

func (s StatusError) Error() string

type Trigger added in v0.7.0

type Trigger struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec holds the desired state of the Trigger
	// +optional
	Spec TriggerSpec `json:"spec"`
}

Trigger defines a mapping of an input event to parameters. This is used to extract information from events to be passed to TriggerTemplates within a Trigger. +k8s:openapi-gen=true

func (*Trigger) DeepCopy added in v0.7.0

func (in *Trigger) DeepCopy() *Trigger

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trigger.

func (*Trigger) DeepCopyInto added in v0.7.0

func (in *Trigger) DeepCopyInto(out *Trigger)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Trigger) DeepCopyObject added in v0.7.0

func (in *Trigger) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Trigger) SetDefaults added in v0.8.0

func (t *Trigger) SetDefaults(ctx context.Context)

SetDefaults sets the defaults on the object.

func (*Trigger) Validate added in v0.8.0

func (t *Trigger) Validate(ctx context.Context) *apis.FieldError

Validate validates a Trigger

type TriggerBinding

type TriggerBinding struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec holds the desired state of the TriggerBinding
	// +optional
	Spec TriggerBindingSpec `json:"spec"`
	// +optional
	Status TriggerBindingStatus `json:"status,omitempty"`
}

TriggerBinding defines a mapping of an input event to parameters. This is used to extract information from events to be passed to TriggerTemplates within a Trigger. +k8s:openapi-gen=true

func (*TriggerBinding) Copy added in v0.3.0

func (*TriggerBinding) DeepCopy

func (in *TriggerBinding) DeepCopy() *TriggerBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerBinding.

func (*TriggerBinding) DeepCopyInto

func (in *TriggerBinding) DeepCopyInto(out *TriggerBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TriggerBinding) DeepCopyObject

func (in *TriggerBinding) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TriggerBinding) SetDefaults

func (tb *TriggerBinding) SetDefaults(ctx context.Context)

SetDefaults initializes TriggerBinding tb with its default values.

func (*TriggerBinding) TriggerBindingMetadata added in v0.3.0

func (tb *TriggerBinding) TriggerBindingMetadata() metav1.ObjectMeta

func (*TriggerBinding) TriggerBindingSpec added in v0.3.0

func (tb *TriggerBinding) TriggerBindingSpec() TriggerBindingSpec

func (*TriggerBinding) Validate

func (tb *TriggerBinding) Validate(ctx context.Context) (errs *apis.FieldError)

Validate TriggerBinding.

type TriggerBindingInterface added in v0.3.0

type TriggerBindingInterface interface {
	TriggerBindingMetadata() metav1.ObjectMeta
	TriggerBindingSpec() TriggerBindingSpec
	Copy() TriggerBindingInterface
}

TriggerBindingInterface is implemented by TriggerBinding and ClusterTriggerBinding

type TriggerBindingKind added in v0.3.0

type TriggerBindingKind string

Check that EventListener may be validated and defaulted. TriggerBindingKind defines the type of TriggerBinding used by the EventListener.

const (
	// NamespacedTriggerBindingKind indicates that triggerbinding type has a namespace scope.
	NamespacedTriggerBindingKind TriggerBindingKind = "TriggerBinding"
	// ClusterTriggerBindingKind indicates that triggerbinding type has a cluster scope.
	ClusterTriggerBindingKind TriggerBindingKind = "ClusterTriggerBinding"
)

type TriggerBindingList

type TriggerBindingList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []TriggerBinding `json:"items"`
}

TriggerBindingList contains a list of TriggerBindings. We don't use this but it's required for certain codegen features.

func (*TriggerBindingList) DeepCopy

func (in *TriggerBindingList) DeepCopy() *TriggerBindingList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerBindingList.

func (*TriggerBindingList) DeepCopyInto

func (in *TriggerBindingList) DeepCopyInto(out *TriggerBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TriggerBindingList) DeepCopyObject

func (in *TriggerBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TriggerBindingSpec

type TriggerBindingSpec struct {
	// Params defines the parameter mapping from the given input event.
	// +listType=atomic
	Params []Param `json:"params,omitempty"`
}

TriggerBindingSpec defines the desired state of the TriggerBinding.

func (*TriggerBindingSpec) DeepCopy

func (in *TriggerBindingSpec) DeepCopy() *TriggerBindingSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerBindingSpec.

func (*TriggerBindingSpec) DeepCopyInto

func (in *TriggerBindingSpec) DeepCopyInto(out *TriggerBindingSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TriggerBindingSpec) Validate

func (s *TriggerBindingSpec) Validate(ctx context.Context) (errs *apis.FieldError)

Validate TriggerBindingSpec.

type TriggerBindingStatus

type TriggerBindingStatus struct{}

TriggerBindingStatus defines the observed state of TriggerBinding.

func (*TriggerBindingStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerBindingStatus.

func (*TriggerBindingStatus) DeepCopyInto

func (in *TriggerBindingStatus) DeepCopyInto(out *TriggerBindingStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerContext added in v0.10.0

type TriggerContext struct {
	// EventURL is the URL of the incoming event
	EventURL string `json:"event_url,omitempty"`
	// EventID is a unique ID assigned by Triggers to each event
	EventID string `json:"event_id,omitempty"`
	// TriggerID is of the form namespace/$ns/triggers/$name
	TriggerID string `json:"trigger_id,omitempty"`
}

func (*TriggerContext) DeepCopy added in v0.10.0

func (in *TriggerContext) DeepCopy() *TriggerContext

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerContext.

func (*TriggerContext) DeepCopyInto added in v0.10.0

func (in *TriggerContext) DeepCopyInto(out *TriggerContext)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerInterceptor added in v0.7.0

type TriggerInterceptor struct {
	// Optional name to identify the current interceptor configuration
	Name *string `json:"name,omitempty"`
	// Ref refers to the Interceptor to use
	Ref InterceptorRef `json:"ref"`
	// Params are the params to send to the interceptor
	// +listType=atomic
	Params []InterceptorParams `json:"params,omitempty"`

	// WebhookInterceptor refers to an old style webhook interceptor service
	Webhook *WebhookInterceptor `json:"webhook,omitempty"`

	// Deprecated old fields below
	DeprecatedGitHub    *GitHubInterceptor    `json:"github,omitempty"`
	DeprecatedGitLab    *GitLabInterceptor    `json:"gitlab,omitempty"`
	DeprecatedCEL       *CELInterceptor       `json:"cel,omitempty"`
	DeprecatedBitbucket *BitbucketInterceptor `json:"bitbucket,omitempty"`
}

TriggerInterceptor provides a hook to intercept and pre-process events

func (*TriggerInterceptor) DeepCopy added in v0.7.0

func (in *TriggerInterceptor) DeepCopy() *TriggerInterceptor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerInterceptor.

func (*TriggerInterceptor) DeepCopyInto added in v0.7.0

func (in *TriggerInterceptor) DeepCopyInto(out *TriggerInterceptor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TriggerInterceptor) GetName added in v0.13.0

func (ti *TriggerInterceptor) GetName() string

GetName returns the name for the given interceptor

type TriggerList added in v0.7.0

type TriggerList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Trigger `json:"items"`
}

TriggerList contains a list of Triggers. We don't use this but it's required for certain codegen features.

func (*TriggerList) DeepCopy added in v0.7.0

func (in *TriggerList) DeepCopy() *TriggerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerList.

func (*TriggerList) DeepCopyInto added in v0.7.0

func (in *TriggerList) DeepCopyInto(out *TriggerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TriggerList) DeepCopyObject added in v0.7.0

func (in *TriggerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TriggerResourceTemplate

type TriggerResourceTemplate struct {
	runtime.RawExtension `json:",inline"`
}

TriggerResourceTemplate describes a resource to create

func (*TriggerResourceTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerResourceTemplate.

func (*TriggerResourceTemplate) DeepCopyInto

func (in *TriggerResourceTemplate) DeepCopyInto(out *TriggerResourceTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerSpec added in v0.7.0

type TriggerSpec struct {
	// +listType=atomic
	Bindings []*TriggerSpecBinding `json:"bindings"`
	Template TriggerSpecTemplate   `json:"template"`
	// +optional
	Name string `json:"name,omitempty"`
	// +listType=atomic
	Interceptors []*TriggerInterceptor `json:"interceptors,omitempty"`
	// ServiceAccountName optionally associates credentials with each trigger;
	// Unlike EventListeners, this should be scoped to the same namespace
	// as the Trigger itself
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

TriggerSpec represents a connection between TriggerSpecBinding, and TriggerSpecTemplate; TriggerSpecBinding provides extracted values for TriggerSpecTemplate to then create resources from.

func (*TriggerSpec) DeepCopy added in v0.7.0

func (in *TriggerSpec) DeepCopy() *TriggerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpec.

func (*TriggerSpec) DeepCopyInto added in v0.7.0

func (in *TriggerSpec) DeepCopyInto(out *TriggerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerSpecBinding added in v0.7.0

type TriggerSpecBinding struct {
	// Name is the name of the binding param
	// Mutually exclusive with Ref
	Name string `json:"name,omitempty"`
	// Value is the value of the binding param. Can contain JSONPath
	// Has to be pointer since "" is a valid value
	// Required if Name is also specified.
	Value *string `json:"value,omitempty"`

	// Ref is a reference to a TriggerBinding kind.
	// Mutually exclusive with Name
	Ref string `json:"ref,omitempty"`

	// Kind can only be provided if Ref is also provided. Defaults to TriggerBinding
	Kind TriggerBindingKind `json:"kind,omitempty"`

	// APIVersion of the binding ref
	APIVersion string `json:"apiversion,omitempty"`
}

func (*TriggerSpecBinding) DeepCopy added in v0.7.0

func (in *TriggerSpecBinding) DeepCopy() *TriggerSpecBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecBinding.

func (*TriggerSpecBinding) DeepCopyInto added in v0.7.0

func (in *TriggerSpecBinding) DeepCopyInto(out *TriggerSpecBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerSpecTemplate added in v0.7.0

type TriggerSpecTemplate struct {
	Ref        *string              `json:"ref,omitempty"`
	APIVersion string               `json:"apiversion,omitempty"`
	Spec       *TriggerTemplateSpec `json:"spec,omitempty"`
}

func (*TriggerSpecTemplate) DeepCopy added in v0.7.0

func (in *TriggerSpecTemplate) DeepCopy() *TriggerSpecTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpecTemplate.

func (*TriggerSpecTemplate) DeepCopyInto added in v0.7.0

func (in *TriggerSpecTemplate) DeepCopyInto(out *TriggerSpecTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerTemplate

type TriggerTemplate struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Spec holds the desired state of the TriggerTemplate from the client
	// +optional
	Spec TriggerTemplateSpec `json:"spec"`
	// +optional
	Status TriggerTemplateStatus `json:"status,omitempty"`
}

TriggerTemplate takes parameters and uses them to create CRDs

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*TriggerTemplate) DeepCopy

func (in *TriggerTemplate) DeepCopy() *TriggerTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerTemplate.

func (*TriggerTemplate) DeepCopyInto

func (in *TriggerTemplate) DeepCopyInto(out *TriggerTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TriggerTemplate) DeepCopyObject

func (in *TriggerTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TriggerTemplate) SetDefaults

func (tt *TriggerTemplate) SetDefaults(ctx context.Context)

SetDefaults initializes TriggerTemplate with default values.

func (*TriggerTemplate) Validate

func (t *TriggerTemplate) Validate(ctx context.Context) *apis.FieldError

Validate validates a TriggerTemplate.

type TriggerTemplateList

type TriggerTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []TriggerTemplate `json:"items"`
}

TriggerTemplateList contains a list of TriggerTemplate

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TriggerTemplateList) DeepCopy

func (in *TriggerTemplateList) DeepCopy() *TriggerTemplateList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerTemplateList.

func (*TriggerTemplateList) DeepCopyInto

func (in *TriggerTemplateList) DeepCopyInto(out *TriggerTemplateList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TriggerTemplateList) DeepCopyObject

func (in *TriggerTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TriggerTemplateSpec

type TriggerTemplateSpec struct {
	// +listType=atomic
	Params []ParamSpec `json:"params,omitempty"`
	// +listType=atomic
	ResourceTemplates []TriggerResourceTemplate `json:"resourcetemplates,omitempty"`
}

TriggerTemplateSpec holds the desired state of TriggerTemplate

func (*TriggerTemplateSpec) DeepCopy

func (in *TriggerTemplateSpec) DeepCopy() *TriggerTemplateSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerTemplateSpec.

func (*TriggerTemplateSpec) DeepCopyInto

func (in *TriggerTemplateSpec) DeepCopyInto(out *TriggerTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerTemplateStatus

type TriggerTemplateStatus struct{}

TriggerTemplateStatus describes the desired state of TriggerTemplate

func (*TriggerTemplateStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerTemplateStatus.

func (*TriggerTemplateStatus) DeepCopyInto

func (in *TriggerTemplateStatus) DeepCopyInto(out *TriggerTemplateStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WebhookInterceptor added in v0.2.0

type WebhookInterceptor struct {
	// ObjectRef is a reference to an object that will resolve to a cluster DNS
	// name to use as the EventInterceptor. Either objectRef or url can be specified
	// +optional
	ObjectRef *corev1.ObjectReference `json:"objectRef,omitempty"`
	// +optional
	URL *apis.URL `json:"url,omitempty"`
	// Header is a group of key-value pairs that can be appended to the
	// interceptor request headers. This allows the interceptor to make
	// decisions specific to an EventListenerTrigger.
	// +listType=atomic
	Header []v1beta1.Param `json:"header,omitempty"`
}

WebhookInterceptor provides a webhook to intercept and pre-process events

func (*WebhookInterceptor) DeepCopy added in v0.2.0

func (in *WebhookInterceptor) DeepCopy() *WebhookInterceptor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookInterceptor.

func (*WebhookInterceptor) DeepCopyInto added in v0.2.0

func (in *WebhookInterceptor) DeepCopyInto(out *WebhookInterceptor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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