Documentation ¶
Index ¶
- func ClusterTriggerBinding(name string, ops ...ClusterTriggerBindingOp) *v1alpha1.ClusterTriggerBinding
- func EventListener(name, namespace string, ops ...EventListenerOp) *v1alpha1.EventListener
- func NewAddressable(hostname string) *duckv1alpha1.Addressable
- func Param(name, value string) v1beta1.Param
- func Trigger(ttName, apiVersion string, ops ...EventListenerTriggerOp) v1alpha1.EventListenerTrigger
- func TriggerBinding(name, namespace string, ops ...TriggerBindingOp) *v1alpha1.TriggerBinding
- func TriggerTemplate(name, namespace string, ops ...TriggerTemplateOp) *v1alpha1.TriggerTemplate
- type ClusterTriggerBindingOp
- type EventInterceptorOp
- type EventListenerOp
- type EventListenerSpecOp
- type EventListenerStatusOp
- type EventListenerTriggerOp
- func EventListenerCELInterceptor(filter string, ops ...EventInterceptorOp) EventListenerTriggerOp
- func EventListenerTriggerBinding(name, kind, apiVersion string) EventListenerTriggerOp
- func EventListenerTriggerInterceptor(name, version, kind, namespace string, ops ...EventInterceptorOp) EventListenerTriggerOp
- func EventListenerTriggerName(name string) EventListenerTriggerOp
- func EventListenerTriggerServiceAccount(saName, namespace string) EventListenerTriggerOp
- type MetaOp
- type ObjectMetaOp
- type TriggerBindingOp
- type TriggerBindingSpecOp
- type TriggerTemplateOp
- type TriggerTemplateSpecOp
- type TypeMetaOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterTriggerBinding ¶
func ClusterTriggerBinding(name string, ops ...ClusterTriggerBindingOp) *v1alpha1.ClusterTriggerBinding
ClusterTriggerBinding creates a ClusterTriggerBinding with default values. Any number of ClusterTriggerBinding modifiers can be passed.
func EventListener ¶
func EventListener(name, namespace string, ops ...EventListenerOp) *v1alpha1.EventListener
EventListener creates an EventListener with default values. Any number of EventListenerOp modifiers can be passed to transform it.
func NewAddressable ¶
func NewAddressable(hostname string) *duckv1alpha1.Addressable
func Trigger ¶
func Trigger(ttName, apiVersion string, ops ...EventListenerTriggerOp) v1alpha1.EventListenerTrigger
Trigger creates an EventListenerTrigger. Any number of EventListenerTriggerOp modifiers can be passed to create/modify it. For creating an EventListenerBinding you have to pass a EventListenerTriggerOp
func TriggerBinding ¶
func TriggerBinding(name, namespace string, ops ...TriggerBindingOp) *v1alpha1.TriggerBinding
TriggerBinding creates a TriggerBinding with default values. Any number of TriggerBinding modifiers can be passed.
func TriggerTemplate ¶
func TriggerTemplate(name, namespace string, ops ...TriggerTemplateOp) *v1alpha1.TriggerTemplate
TriggerTemplate creates a TriggerTemplate with default values. Any number of TriggerTemplate modifiers can be passed.
Types ¶
type ClusterTriggerBindingOp ¶
type ClusterTriggerBindingOp func(*v1alpha1.ClusterTriggerBinding)
ClusterTriggerBindingOp is an operation which modifies the ClusterTriggerBinding.
func ClusterTriggerBindingMeta ¶
func ClusterTriggerBindingMeta(ops ...MetaOp) ClusterTriggerBindingOp
ClusterTriggerBindingSpec sets the specified spec of the ClusterTriggerBinding. Any number of ClusterTriggerBindingSpecOp modifiers can be passed.
func ClusterTriggerBindingSpec ¶
func ClusterTriggerBindingSpec(ops ...TriggerBindingSpecOp) ClusterTriggerBindingOp
ClusterTriggerBindingSpec sets the specified spec of the ClusterTriggerBinding. Any number of ClusterTriggerBindingSpecOp modifiers can be passed.
type EventInterceptorOp ¶
type EventInterceptorOp func(*v1alpha1.EventInterceptor)
EventInterceptorOp is an operation which modifies the EventInterceptor.
func EventInterceptorParam ¶
func EventInterceptorParam(name, value string) EventInterceptorOp
EventInterceptorParam adds a parameter to the EventInterceptor.
func EventListenerCELOverlay ¶
func EventListenerCELOverlay(key, expression string) EventInterceptorOp
type EventListenerOp ¶
type EventListenerOp func(*v1alpha1.EventListener)
EventListenerOp is an operation which modifies the EventListener.
func EventListenerMeta ¶
func EventListenerMeta(ops ...MetaOp) EventListenerOp
EventListenerMeta sets the Meta structs of the EventListener. Any number of MetaOp modifiers can be passed.
func EventListenerSpec ¶
func EventListenerSpec(ops ...EventListenerSpecOp) EventListenerOp
EventListenerSpec sets the specified spec of the EventListener. Any number of EventListenerSpecOp modifiers can be passed to create/modify it.
func EventListenerStatus ¶
func EventListenerStatus(ops ...EventListenerStatusOp) EventListenerOp
EventListenerStatus sets the specified status of the EventListener. Any number of EventListenerStatusOp modifiers can be passed to create/modify it.
type EventListenerSpecOp ¶
type EventListenerSpecOp func(*v1alpha1.EventListenerSpec)
EventListenerSpecOp is an operation which modifies the EventListenerSpec.
func EventListenerServiceAccount ¶
func EventListenerServiceAccount(saName string) EventListenerSpecOp
EventListenerServiceAccount sets the specified ServiceAccount of the EventListener.
func EventListenerTrigger ¶
func EventListenerTrigger(ttName, apiVersion string, ops ...EventListenerTriggerOp) EventListenerSpecOp
EventListenerTrigger adds an EventListenerTrigger to the EventListenerSpec Triggers. Any number of EventListenerTriggerOp modifiers can be passed to create/modify it.
type EventListenerStatusOp ¶
type EventListenerStatusOp func(*v1alpha1.EventListenerStatus)
EventListenerStatusOp is an operation which modifies the EventListenerStatus.
func EventListenerAddress ¶
func EventListenerAddress(hostname string) EventListenerStatusOp
EventListenerAddress sets the EventListenerAddress on the EventListenerStatus
func EventListenerCondition ¶
func EventListenerCondition(t apis.ConditionType, status corev1.ConditionStatus, message, reason string) EventListenerStatusOp
EventListenerCondition sets the specified condition on the EventListenerStatus.
func EventListenerConfig ¶
func EventListenerConfig(generatedResourceName string) EventListenerStatusOp
EventListenerConfig sets the EventListenerConfiguration on the EventListenerStatus.
type EventListenerTriggerOp ¶
type EventListenerTriggerOp func(*v1alpha1.EventListenerTrigger)
EventListenerTriggerOp is an operation which modifies the Trigger.
func EventListenerCELInterceptor ¶
func EventListenerCELInterceptor(filter string, ops ...EventInterceptorOp) EventListenerTriggerOp
EventListenerCELInterceptor adds a CEL filter to the EventListenerTrigger.
func EventListenerTriggerBinding ¶
func EventListenerTriggerBinding(name, kind, apiVersion string) EventListenerTriggerOp
EventListenerTriggerBinding adds a Binding to the Trigger in EventListenerSpec Triggers.
func EventListenerTriggerInterceptor ¶
func EventListenerTriggerInterceptor(name, version, kind, namespace string, ops ...EventInterceptorOp) EventListenerTriggerOp
EventListenerTriggerInterceptor adds an objectRef to an interceptor Service to the EventListenerTrigger.
func EventListenerTriggerName ¶
func EventListenerTriggerName(name string) EventListenerTriggerOp
EventListenerTriggerName adds a Name to the Trigger in EventListenerSpec Triggers.
func EventListenerTriggerServiceAccount ¶
func EventListenerTriggerServiceAccount(saName, namespace string) EventListenerTriggerOp
EventListenerTriggerServiceAccount set the specified ServiceAccount of the EventListenerTrigger.
type MetaOp ¶
type MetaOp interface{}
MetaOp is an interface that is used in other builders. Other builders should have a Meta function that accepts ...MetaOp where ObjectMetaOp/TypeMetaOp are the underlying type.
type ObjectMetaOp ¶
type ObjectMetaOp func(m *metav1.ObjectMeta)
ObjectMetaOp is an operation which modifies the ObjectMeta.
func Label ¶
func Label(key, value string) ObjectMetaOp
Label adds a single label to the ObjectMeta.
type TriggerBindingOp ¶
type TriggerBindingOp func(*v1alpha1.TriggerBinding)
TriggerBindingOp is an operation which modifies the TriggerBinding.
func TriggerBindingMeta ¶
func TriggerBindingMeta(ops ...MetaOp) TriggerBindingOp
TriggerBindingMeta sets the Meta structs of the TriggerBinding. Any number of MetaOp modifiers can be passed.
func TriggerBindingSpec ¶
func TriggerBindingSpec(ops ...TriggerBindingSpecOp) TriggerBindingOp
TriggerBindingSpec sets the specified spec of the TriggerBinding. Any number of TriggerBindingSpecOp modifiers can be passed.
type TriggerBindingSpecOp ¶
type TriggerBindingSpecOp func(*v1alpha1.TriggerBindingSpec)
TriggerBindingSpecOp is an operation which modifies the TriggerBindingSpec.
func TriggerBindingParam ¶
func TriggerBindingParam(name, value string) TriggerBindingSpecOp
TriggerBindingParam adds a param to the TriggerBindingSpec.
type TriggerTemplateOp ¶
type TriggerTemplateOp func(*v1alpha1.TriggerTemplate)
TriggerTemplateOp is an operation which modifies an TriggerTemplate struct.
func TriggerTemplateMeta ¶
func TriggerTemplateMeta(ops ...MetaOp) TriggerTemplateOp
TriggerTemplateMeta sets the Meta structs of the TriggerTemplate. Any number of MetaOp modifiers can be passed.
func TriggerTemplateSpec ¶
func TriggerTemplateSpec(ops ...TriggerTemplateSpecOp) TriggerTemplateOp
TriggerTemplateSpec sets the TriggerTemplateSpec. Any number of TriggerTemplate modifiers can be passed.
type TriggerTemplateSpecOp ¶
type TriggerTemplateSpecOp func(*v1alpha1.TriggerTemplateSpec)
TriggerTemplateSpecOp is an operation which modifies a TriggerTemplateSpec struct.
func TriggerResourceTemplate ¶
func TriggerResourceTemplate(resourceTemplate runtime.RawExtension) TriggerTemplateSpecOp
TriggerResourceTemplate adds a ResourceTemplate to the TriggerTemplateSpec.
func TriggerTemplateParam ¶
func TriggerTemplateParam(name, description, defaultValue string) TriggerTemplateSpecOp
TriggerTemplateParam adds a ParamSpec to the TriggerTemplateSpec.
type TypeMetaOp ¶
TypeMetaOp is an operation which modifies the TypeMeta.
func TypeMeta ¶
func TypeMeta(kind, apiVersion string) TypeMetaOp
TypeMeta sets the TypeMeta struct with default values.