Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the sources/v1alpha1 API group. +k8s:deepcopy-gen=package +groupName=sources.triggermesh.io
Index ¶
- Constants
- Variables
- func EventType(service, eventType string) string
- func IsMultiTenant(src EventSource) bool
- func Kind(kind string) schema.GroupKind
- func NewEventSourceConditionSet(cts ...apis.ConditionType) apis.ConditionSet
- func Resource(resource string) schema.GroupResource
- func WithSource(ctx context.Context, s EventSource) context.Context
- type EventSource
- type EventSourceStatus
- type EventSourceStatusManager
- func (m *EventSourceStatusManager) MarkNoSink()
- func (m *EventSourceStatusManager) MarkRBACNotBound()
- func (m *EventSourceStatusManager) MarkSink(uri *apis.URL)
- func (m *EventSourceStatusManager) PropagateDeploymentAvailability(ctx context.Context, d *appsv1.Deployment, pi coreclientv1.PodInterface)
- func (m *EventSourceStatusManager) PropagateServiceAvailability(ksvc *servingv1.Service)
- func (m *EventSourceStatusManager) SetRoute(urlPath string)
- type HTTPPollerSource
- func (s *HTTPPollerSource) AsEventSource() string
- func (in *HTTPPollerSource) DeepCopy() *HTTPPollerSource
- func (in *HTTPPollerSource) DeepCopyInto(out *HTTPPollerSource)
- func (in *HTTPPollerSource) DeepCopyObject() runtime.Object
- func (s *HTTPPollerSource) GetConditionSet() pkgapis.ConditionSet
- func (s *HTTPPollerSource) GetEventTypes() []string
- func (*HTTPPollerSource) GetGroupVersionKind() schema.GroupVersionKind
- func (s *HTTPPollerSource) GetSink() *duckv1.Destination
- func (s *HTTPPollerSource) GetStatus() *duckv1.Status
- func (s *HTTPPollerSource) GetStatusManager() *EventSourceStatusManager
- type HTTPPollerSourceList
- type HTTPPollerSourceSpec
- type SlackSource
- func (s *SlackSource) AsEventSource() string
- func (in *SlackSource) DeepCopy() *SlackSource
- func (in *SlackSource) DeepCopyInto(out *SlackSource)
- func (in *SlackSource) DeepCopyObject() runtime.Object
- func (*SlackSource) GetConditionSet() pkgapis.ConditionSet
- func (*SlackSource) GetEventTypes() []string
- func (*SlackSource) GetGroupVersionKind() schema.GroupVersionKind
- func (s *SlackSource) GetSink() *duckv1.Destination
- func (s *SlackSource) GetStatus() *duckv1.Status
- func (s *SlackSource) GetStatusManager() *EventSourceStatusManager
- type SlackSourceList
- type SlackSourceSpec
- type ValueFromField
- type WebhookSource
- func (s *WebhookSource) AsEventSource() string
- func (in *WebhookSource) DeepCopy() *WebhookSource
- func (in *WebhookSource) DeepCopyInto(out *WebhookSource)
- func (in *WebhookSource) DeepCopyObject() runtime.Object
- func (s *WebhookSource) GetConditionSet() pkgapis.ConditionSet
- func (s *WebhookSource) GetEventTypes() []string
- func (*WebhookSource) GetGroupVersionKind() schema.GroupVersionKind
- func (s *WebhookSource) GetSink() *duckv1.Destination
- func (s *WebhookSource) GetStatus() *duckv1.Status
- func (s *WebhookSource) GetStatusManager() *EventSourceStatusManager
- type WebhookSourceList
- type WebhookSourceSpec
- type ZendeskSource
- func (s *ZendeskSource) AsEventSource() string
- func (in *ZendeskSource) DeepCopy() *ZendeskSource
- func (in *ZendeskSource) DeepCopyInto(out *ZendeskSource)
- func (in *ZendeskSource) DeepCopyObject() runtime.Object
- func (*ZendeskSource) GetConditionSet() apis.ConditionSet
- func (*ZendeskSource) GetEventTypes() []string
- func (*ZendeskSource) GetGroupVersionKind() schema.GroupVersionKind
- func (s *ZendeskSource) GetSink() *duckv1.Destination
- func (s *ZendeskSource) GetStatus() *duckv1.Status
- func (s *ZendeskSource) GetStatusManager() *EventSourceStatusManager
- func (s *ZendeskSource) GetUntypedSpec() interface{}
- func (*ZendeskSource) IsMultiTenant() bool
- type ZendeskSourceList
- type ZendeskSourceSpec
- type ZendeskSourceStatus
Constants ¶
const ( // ConditionReady has status True when the source is ready to send events. ConditionReady = apis.ConditionReady // ConditionSinkProvided has status True when the source has been configured with a sink target. ConditionSinkProvided apis.ConditionType = "SinkProvided" // ConditionDeployed has status True when the source's adapter is up and running. ConditionDeployed apis.ConditionType = "Deployed" )
Status conditions
const ( // ReasonSinkNotFound is set on a SinkProvided condition when a sink does not exist. ReasonSinkNotFound = "SinkNotFound" // ReasonSinkEmpty is set on a SinkProvided condition when a sink URI is empty. ReasonSinkEmpty = "EmptySinkURI" // ReasonRBACNotBound is set on a Deployed condition when an adapter's // ServiceAccount cannot be bound. ReasonRBACNotBound = "RBACNotBound" ReasonUnavailable = "AdapterUnavailable" )
Reasons for status conditions
const ( // ZendeskReasonNoURL is set on a TargetSynced condition when the adapter URL is empty. ZendeskReasonNoURL = "MissingAdapterURL" // ZendeskReasonNoSecret is set on a TargetSynced condition when required secrets can't be obtained. ZendeskReasonNoSecret = "MissingSecret" // ZendeskReasonFailedSync is set on a TargetSynced condition when a CRUD API call returns an error. ZendeskReasonFailedSync = "FailedSync" )
Reasons for status conditions
const (
SlackGenericEventType = "com.slack.events"
)
Supported event types
const ( // ZendeskConditionTargetSynced has status True when the Zendesk Target and Trigger have been synced. ZendeskConditionTargetSynced apis.ConditionType = "TargetSynced" )
Status conditions
const (
// ZendeskTicketCreatedEventType is generated upon creation of a Ticket.
ZendeskTicketCreatedEventType = "com.zendesk.ticket.created"
)
Supported event types
Variables ¶
var ( // SchemeGroupVersion contains the group and version used to register types for this custom API. SchemeGroupVersion = schema.GroupVersion{Group: sources.GroupName, Version: "v1alpha1"} // SchemeBuilder creates a Scheme builder that is used to register types for this custom API. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme registers the types stored in SchemeBuilder. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func EventType ¶ added in v1.3.0
EventType returns an event type in a format suitable for usage as a CloudEvent type attribute.
func IsMultiTenant ¶ added in v1.3.0
func IsMultiTenant(src EventSource) bool
IsMultiTenant returns whether the given source type is multi-tenant.
func NewEventSourceConditionSet ¶ added in v0.6.0
func NewEventSourceConditionSet(cts ...apis.ConditionType) apis.ConditionSet
NewEventSourceConditionSet returns a set of status conditions for an event source. Default conditions can be augmented by passing condition types as function arguments.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
func WithSource ¶
func WithSource(ctx context.Context, s EventSource) context.Context
WithSource returns a copy of the parent context in which the value associated with the source key is the given event source.
Types ¶
type EventSource ¶
type EventSource interface { metav1.Object runtime.Object // OwnerRefable is used to construct a generic reconciler for each // source type, and convert source objects to owner references. kmeta.OwnerRefable // KRShaped is used by generated reconcilers to perform pre and // post-reconcile status updates. duckv1.KRShaped // GetSink returns the source's event sink. GetSink() *duckv1.Destination // GetStatusManager returns a manager for the source's status. GetStatusManager() *EventSourceStatusManager // GetEventTypes returns the event types generated by the source. GetEventTypes() []string // AsEventSource returns a unique reference to the source suitable for // use as a CloudEvent source attribute. AsEventSource() string }
EventSource is implemented by all event source types.
func SourceFromContext ¶
func SourceFromContext(ctx context.Context) EventSource
SourceFromContext returns the source stored in the context.
type EventSourceStatus ¶
type EventSourceStatus struct { duckv1.SourceStatus `json:",inline"` duckv1.AddressStatus `json:",inline"` }
EventSourceStatus defines the observed state of an event source.
func (*EventSourceStatus) DeepCopy ¶
func (in *EventSourceStatus) DeepCopy() *EventSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceStatus.
func (*EventSourceStatus) DeepCopyInto ¶
func (in *EventSourceStatus) DeepCopyInto(out *EventSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventSourceStatusManager ¶ added in v0.6.0
type EventSourceStatusManager struct { apis.ConditionSet *EventSourceStatus }
EventSourceStatusManager manages the status of event sources.
+k8s:deepcopy-gen=false
func (*EventSourceStatusManager) MarkNoSink ¶ added in v0.6.0
func (m *EventSourceStatusManager) MarkNoSink()
MarkNoSink sets the SinkProvided condition to False.
func (*EventSourceStatusManager) MarkRBACNotBound ¶ added in v1.3.0
func (m *EventSourceStatusManager) MarkRBACNotBound()
MarkRBACNotBound sets the Deployed condition to False, indicating that the adapter's ServiceAccount couldn't be bound.
func (*EventSourceStatusManager) MarkSink ¶ added in v0.6.0
func (m *EventSourceStatusManager) MarkSink(uri *apis.URL)
MarkSink sets the SinkProvided condition to True using the given URI.
func (*EventSourceStatusManager) PropagateDeploymentAvailability ¶ added in v0.6.0
func (m *EventSourceStatusManager) PropagateDeploymentAvailability(ctx context.Context, d *appsv1.Deployment, pi coreclientv1.PodInterface)
PropagateDeploymentAvailability uses the readiness of the provided Deployment to determine whether the Deployed condition should be marked as True or False. Given an optional PodInterface, the status of dependant Pods is inspected to generate a more meaningful failure reason in case of non-ready status of the Deployment.
func (*EventSourceStatusManager) PropagateServiceAvailability ¶ added in v0.6.0
func (m *EventSourceStatusManager) PropagateServiceAvailability(ksvc *servingv1.Service)
PropagateServiceAvailability uses the readiness of the provided Service to determine whether the Deployed condition should be marked as True or False.
func (*EventSourceStatusManager) SetRoute ¶ added in v1.3.0
func (m *EventSourceStatusManager) SetRoute(urlPath string)
SetRoute appends the given URL path to the current source's URL.
type HTTPPollerSource ¶ added in v1.4.0
type HTTPPollerSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HTTPPollerSourceSpec `json:"spec,omitempty"` Status EventSourceStatus `json:"status,omitempty"` }
HTTPPollerSource is the schema for the event source.
func (*HTTPPollerSource) AsEventSource ¶ added in v1.4.0
func (s *HTTPPollerSource) AsEventSource() string
AsEventSource implements EventSource.
func (*HTTPPollerSource) DeepCopy ¶ added in v1.4.0
func (in *HTTPPollerSource) DeepCopy() *HTTPPollerSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPPollerSource.
func (*HTTPPollerSource) DeepCopyInto ¶ added in v1.4.0
func (in *HTTPPollerSource) DeepCopyInto(out *HTTPPollerSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPPollerSource) DeepCopyObject ¶ added in v1.4.0
func (in *HTTPPollerSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*HTTPPollerSource) GetConditionSet ¶ added in v1.4.0
func (s *HTTPPollerSource) GetConditionSet() pkgapis.ConditionSet
GetConditionSet implements duckv1.KRShaped.
func (*HTTPPollerSource) GetEventTypes ¶ added in v1.4.0
func (s *HTTPPollerSource) GetEventTypes() []string
GetEventTypes implements EventSource.
func (*HTTPPollerSource) GetGroupVersionKind ¶ added in v1.4.0
func (*HTTPPollerSource) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable.
func (*HTTPPollerSource) GetSink ¶ added in v1.4.0
func (s *HTTPPollerSource) GetSink() *duckv1.Destination
GetSink implements EventSource.
func (*HTTPPollerSource) GetStatus ¶ added in v1.4.0
func (s *HTTPPollerSource) GetStatus() *duckv1.Status
GetStatus implements duckv1.KRShaped.
func (*HTTPPollerSource) GetStatusManager ¶ added in v1.4.0
func (s *HTTPPollerSource) GetStatusManager() *EventSourceStatusManager
GetStatusManager implements EventSource.
type HTTPPollerSourceList ¶ added in v1.4.0
type HTTPPollerSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HTTPPollerSource `json:"items"` }
HTTPPollerSourceList contains a list of event sources.
func (*HTTPPollerSourceList) DeepCopy ¶ added in v1.4.0
func (in *HTTPPollerSourceList) DeepCopy() *HTTPPollerSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPPollerSourceList.
func (*HTTPPollerSourceList) DeepCopyInto ¶ added in v1.4.0
func (in *HTTPPollerSourceList) DeepCopyInto(out *HTTPPollerSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPPollerSourceList) DeepCopyObject ¶ added in v1.4.0
func (in *HTTPPollerSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HTTPPollerSourceSpec ¶ added in v1.4.0
type HTTPPollerSourceSpec struct { // inherits duck/v1 SourceSpec, which currently provides: // * Sink - a reference to an object that will resolve to a domain name or // a URI directly to use as the sink. // * CloudEventOverrides - defines overrides to control the output format // and modifications of the event sent to the sink. duckv1.SourceSpec `json:",inline"` // Value of the CloudEvents 'type' attribute to set on ingested events. // https://github.com/cloudevents/spec/blob/v1.0.1/spec.md#type EventType string `json:"eventType"` // Value of the CloudEvents 'source' attribute to set on ingested events. // https://github.com/cloudevents/spec/blob/v1.0.1/spec.md#source-1 // +optional EventSource *string `json:"eventSource,omitempty"` // HTTP/S URL of the endpoint to poll data from. Endpoint apis.URL `json:"endpoint"` // HTTP request method to use in requests to the specified 'endpoint'. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods Method string `json:"method"` // Controls whether the HTTP client verifies the server's certificate // chain and host name when communicating over TLS. // +optional SkipVerify *bool `json:"skipVerify,omitempty"` // CA certificate in X.509 format the HTTP client should use to verify // the identity of remote servers when communicating over TLS. // +optional CACertificate *string `json:"caCertificate,omitempty"` // User name to set in HTTP requests that require HTTP Basic authentication. // +optional BasicAuthUsername *string `json:"basicAuthUsername,omitempty"` // Password to set in HTTP requests that require HTTP Basic authentication. // +optional BasicAuthPassword *ValueFromField `json:"basicAuthPassword,omitempty"` // HTTP headers to include in HTTP requests. // +optional Headers map[string]string `json:"headers,omitempty"` // Duration which defines how often the HTTP/S endpoint should be polled. // Expressed as a duration string, which format is documented at https://pkg.go.dev/time#ParseDuration. Interval tmapis.Duration `json:"interval"` }
HTTPPollerSourceSpec defines the desired state of the event source.
func (*HTTPPollerSourceSpec) DeepCopy ¶ added in v1.4.0
func (in *HTTPPollerSourceSpec) DeepCopy() *HTTPPollerSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPPollerSourceSpec.
func (*HTTPPollerSourceSpec) DeepCopyInto ¶ added in v1.4.0
func (in *HTTPPollerSourceSpec) DeepCopyInto(out *HTTPPollerSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SlackSource ¶
type SlackSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SlackSourceSpec `json:"spec,omitempty"` Status EventSourceStatus `json:"status,omitempty"` }
SlackSource is the schema for the event source.
func (*SlackSource) AsEventSource ¶
func (s *SlackSource) AsEventSource() string
AsEventSource implements EventSource.
func (*SlackSource) DeepCopy ¶
func (in *SlackSource) DeepCopy() *SlackSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackSource.
func (*SlackSource) DeepCopyInto ¶
func (in *SlackSource) DeepCopyInto(out *SlackSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SlackSource) DeepCopyObject ¶
func (in *SlackSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SlackSource) GetConditionSet ¶
func (*SlackSource) GetConditionSet() pkgapis.ConditionSet
GetConditionSet implements duckv1.KRShaped.
func (*SlackSource) GetEventTypes ¶
func (*SlackSource) GetEventTypes() []string
GetEventTypes implements EventSource.
func (*SlackSource) GetGroupVersionKind ¶
func (*SlackSource) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable.
func (*SlackSource) GetSink ¶
func (s *SlackSource) GetSink() *duckv1.Destination
GetSink implements EventSource.
func (*SlackSource) GetStatus ¶
func (s *SlackSource) GetStatus() *duckv1.Status
GetStatus implements duckv1.KRShaped.
func (*SlackSource) GetStatusManager ¶ added in v0.6.0
func (s *SlackSource) GetStatusManager() *EventSourceStatusManager
GetStatusManager implements EventSource.
type SlackSourceList ¶
type SlackSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SlackSource `json:"items"` }
SlackSourceList contains a list of event sources.
func (*SlackSourceList) DeepCopy ¶
func (in *SlackSourceList) DeepCopy() *SlackSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackSourceList.
func (*SlackSourceList) DeepCopyInto ¶
func (in *SlackSourceList) DeepCopyInto(out *SlackSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SlackSourceList) DeepCopyObject ¶
func (in *SlackSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SlackSourceSpec ¶
type SlackSourceSpec struct { // inherits duck/v1 SourceSpec, which currently provides: // * Sink - a reference to an object that will resolve to a domain name or // a URI directly to use as the sink. // * CloudEventOverrides - defines overrides to control the output format // and modifications of the event sent to the sink. duckv1.SourceSpec `json:",inline"` // SigningSecret can be set to the value of Slack request signing secret // to authenticate callbacks. // See: https://api.slack.com/authentication/verifying-requests-from-slack // +optional SigningSecret *ValueFromField `json:"signingSecret,omitempty"` // AppID identifies the Slack application generating this event. // It helps identifying the App sourcing events when multiple Slack // applications shared an endpoint. See: https://api.slack.com/events-api // +optional AppID *string `json:"appID,omitempty"` }
SlackSourceSpec defines the desired state of the event source.
func (*SlackSourceSpec) DeepCopy ¶
func (in *SlackSourceSpec) DeepCopy() *SlackSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SlackSourceSpec.
func (*SlackSourceSpec) DeepCopyInto ¶
func (in *SlackSourceSpec) DeepCopyInto(out *SlackSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValueFromField ¶
type ValueFromField struct { // Field value. // +optional Value string `json:"value,omitempty"` // Field value from a Kubernetes Secret. // +optional ValueFromSecret *corev1.SecretKeySelector `json:"valueFromSecret,omitempty"` }
ValueFromField is a struct field that can have its value either defined explicitly or sourced from another entity.
func (*ValueFromField) DeepCopy ¶
func (in *ValueFromField) DeepCopy() *ValueFromField
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueFromField.
func (*ValueFromField) DeepCopyInto ¶
func (in *ValueFromField) DeepCopyInto(out *ValueFromField)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookSource ¶ added in v1.4.0
type WebhookSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WebhookSourceSpec `json:"spec,omitempty"` Status EventSourceStatus `json:"status,omitempty"` }
WebhookSource is the schema for the event source.
func (*WebhookSource) AsEventSource ¶ added in v1.4.0
func (s *WebhookSource) AsEventSource() string
AsEventSource implements EventSource.
func (*WebhookSource) DeepCopy ¶ added in v1.4.0
func (in *WebhookSource) DeepCopy() *WebhookSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookSource.
func (*WebhookSource) DeepCopyInto ¶ added in v1.4.0
func (in *WebhookSource) DeepCopyInto(out *WebhookSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WebhookSource) DeepCopyObject ¶ added in v1.4.0
func (in *WebhookSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*WebhookSource) GetConditionSet ¶ added in v1.4.0
func (s *WebhookSource) GetConditionSet() pkgapis.ConditionSet
GetConditionSet implements duckv1.KRShaped.
func (*WebhookSource) GetEventTypes ¶ added in v1.4.0
func (s *WebhookSource) GetEventTypes() []string
GetEventTypes implements EventSource.
func (*WebhookSource) GetGroupVersionKind ¶ added in v1.4.0
func (*WebhookSource) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable.
func (*WebhookSource) GetSink ¶ added in v1.4.0
func (s *WebhookSource) GetSink() *duckv1.Destination
GetSink implements EventSource.
func (*WebhookSource) GetStatus ¶ added in v1.4.0
func (s *WebhookSource) GetStatus() *duckv1.Status
GetStatus implements duckv1.KRShaped.
func (*WebhookSource) GetStatusManager ¶ added in v1.4.0
func (s *WebhookSource) GetStatusManager() *EventSourceStatusManager
GetStatusManager implements EventSource.
type WebhookSourceList ¶ added in v1.4.0
type WebhookSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []WebhookSource `json:"items"` }
WebhookSourceList contains a list of event sources.
func (*WebhookSourceList) DeepCopy ¶ added in v1.4.0
func (in *WebhookSourceList) DeepCopy() *WebhookSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookSourceList.
func (*WebhookSourceList) DeepCopyInto ¶ added in v1.4.0
func (in *WebhookSourceList) DeepCopyInto(out *WebhookSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WebhookSourceList) DeepCopyObject ¶ added in v1.4.0
func (in *WebhookSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WebhookSourceSpec ¶ added in v1.4.0
type WebhookSourceSpec struct { // inherits duck/v1 SourceSpec, which currently provides: // * Sink - a reference to an object that will resolve to a domain name or // a URI directly to use as the sink. // * CloudEventOverrides - defines overrides to control the output format // and modifications of the event sent to the sink. duckv1.SourceSpec `json:",inline"` // Value of the CloudEvents 'type' attribute to set on ingested events. // https://github.com/cloudevents/spec/blob/v1.0.1/spec.md#type EventType string `json:"eventType"` // Value of the CloudEvents 'source' attribute to set on ingested events. // https://github.com/cloudevents/spec/blob/v1.0.1/spec.md#source-1 // +optional EventSource *string `json:"eventSource,omitempty"` // User name HTTP clients must set to authenticate with the webhook using HTTP Basic authentication. // +optional BasicAuthUsername *string `json:"basicAuthUsername,omitempty"` // Password HTTP clients must set to authenticate with the webhook using HTTP Basic authentication. // +optional BasicAuthPassword *ValueFromField `json:"basicAuthPassword,omitempty"` }
WebhookSourceSpec defines the desired state of the event source.
func (*WebhookSourceSpec) DeepCopy ¶ added in v1.4.0
func (in *WebhookSourceSpec) DeepCopy() *WebhookSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookSourceSpec.
func (*WebhookSourceSpec) DeepCopyInto ¶ added in v1.4.0
func (in *WebhookSourceSpec) DeepCopyInto(out *WebhookSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZendeskSource ¶
type ZendeskSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ZendeskSourceSpec `json:"spec,omitempty"` Status ZendeskSourceStatus `json:"status,omitempty"` }
ZendeskSource is the schema for the event source.
func (*ZendeskSource) AsEventSource ¶
func (s *ZendeskSource) AsEventSource() string
AsEventSource implements EventSource.
func (*ZendeskSource) DeepCopy ¶
func (in *ZendeskSource) DeepCopy() *ZendeskSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZendeskSource.
func (*ZendeskSource) DeepCopyInto ¶
func (in *ZendeskSource) DeepCopyInto(out *ZendeskSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ZendeskSource) DeepCopyObject ¶
func (in *ZendeskSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ZendeskSource) GetConditionSet ¶
func (*ZendeskSource) GetConditionSet() apis.ConditionSet
GetConditionSet implements duckv1.KRShaped.
func (*ZendeskSource) GetEventTypes ¶
func (*ZendeskSource) GetEventTypes() []string
GetEventTypes implements EventSource.
func (*ZendeskSource) GetGroupVersionKind ¶
func (*ZendeskSource) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable.
func (*ZendeskSource) GetSink ¶
func (s *ZendeskSource) GetSink() *duckv1.Destination
GetSink implements EventSource.
func (*ZendeskSource) GetStatus ¶
func (s *ZendeskSource) GetStatus() *duckv1.Status
GetStatus implements duckv1.KRShaped.
func (*ZendeskSource) GetStatusManager ¶ added in v0.6.0
func (s *ZendeskSource) GetStatusManager() *EventSourceStatusManager
GetStatusManager implements EventSource.
func (*ZendeskSource) GetUntypedSpec ¶
func (s *ZendeskSource) GetUntypedSpec() interface{}
GetUntypedSpec implements apis.HasSpec.
func (*ZendeskSource) IsMultiTenant ¶ added in v1.4.0
func (*ZendeskSource) IsMultiTenant() bool
IsMultiTenant implements MultiTenant.
type ZendeskSourceList ¶
type ZendeskSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ZendeskSource `json:"items"` }
ZendeskSourceList contains a list of event sources.
func (*ZendeskSourceList) DeepCopy ¶
func (in *ZendeskSourceList) DeepCopy() *ZendeskSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZendeskSourceList.
func (*ZendeskSourceList) DeepCopyInto ¶
func (in *ZendeskSourceList) DeepCopyInto(out *ZendeskSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ZendeskSourceList) DeepCopyObject ¶
func (in *ZendeskSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ZendeskSourceSpec ¶
type ZendeskSourceSpec struct { // inherits duck/v1 SourceSpec, which currently provides: // * Sink - a reference to an object that will resolve to a domain name or // a URI directly to use as the sink. // * CloudEventOverrides - defines overrides to control the output format // and modifications of the event sent to the sink. duckv1.SourceSpec `json:",inline"` // Token identifies the API token used for creating the proper credentials to interface with Zendesk // allowing the source to auto-register the webhook to authenticate callbacks. Token ValueFromField `json:"token,omitempty"` // Email identifies the email used for creating the proper credentials to interface with Zendesk // allowing the source to auto-register the webhook to authenticate callbacks. Email string `json:"email,omitempty"` // WebhookPassword used for basic authentication for events sent from Zendesk // to the adapter. WebhookPassword ValueFromField `json:"webhookPassword,omitempty"` // WebhookUsername used for basic authentication for events sent from Zendesk // to the adapter. WebhookUsername string `json:"webhookUsername,omitempty"` // Subdomain identifies Zendesk subdomain Subdomain string `json:"subdomain,omitempty"` }
ZendeskSourceSpec defines the desired state of the event source.
func (*ZendeskSourceSpec) DeepCopy ¶
func (in *ZendeskSourceSpec) DeepCopy() *ZendeskSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZendeskSourceSpec.
func (*ZendeskSourceSpec) DeepCopyInto ¶
func (in *ZendeskSourceSpec) DeepCopyInto(out *ZendeskSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZendeskSourceStatus ¶
type ZendeskSourceStatus struct {
EventSourceStatus `json:",inline"`
}
ZendeskSourceStatus defines the observed state of the event source.
func (*ZendeskSourceStatus) DeepCopy ¶
func (in *ZendeskSourceStatus) DeepCopy() *ZendeskSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZendeskSourceStatus.
func (*ZendeskSourceStatus) DeepCopyInto ¶
func (in *ZendeskSourceStatus) DeepCopyInto(out *ZendeskSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ZendeskSourceStatus) MarkTargetNotSynced ¶
func (s *ZendeskSourceStatus) MarkTargetNotSynced(reason, msg string)
MarkTargetNotSynced sets the TargetSynced condition to False with the given reason and associated message.
func (*ZendeskSourceStatus) MarkTargetSynced ¶
func (s *ZendeskSourceStatus) MarkTargetSynced()
MarkTargetSynced sets the TargetSynced condition to True.
Source Files ¶
- common_lifecycle.go
- common_types.go
- conditions.go
- deepcopy_generated.go
- doc.go
- httppollersource_lifecycle.go
- httppollersource_types.go
- interfaces.go
- register.go
- slacksource_lifecycle.go
- slacksource_types.go
- webhooksource_lifecycle.go
- webhooksource_types.go
- zendesksource_lifecycle.go
- zendesksource_types.go