Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Args ¶
type Args struct {
// ElName is the EventListener name.
ElName string
// ElNamespace is the EventListener namespace.
ElNamespace string
// Port is the port the Sink should listen on.
Port string
}
Args define the arguments for Sink.
type Clients ¶
type Clients struct {
DiscoveryClient discoveryclient.DiscoveryInterface
RESTClient restclient.Interface
TriggersClient triggersclientset.Interface
PipelineClient pipelineclientset.Interface
}
Clients define the set of client dependencies Sink requires.
func ConfigureClients ¶
ConfigureClients returns the kubernetes and triggers clientsets
type Resource ¶
type Resource struct {
TriggersClient triggersclientset.Interface
DiscoveryClient discoveryclient.DiscoveryInterface
RESTClient restclient.Interface
PipelineClient pipelineclientset.Interface
HTTPClient *http.Client
EventListenerName string
EventListenerNamespace string
}
Resource defines the sink resource for processing incoming events for the EventListener.
func (Resource) HandleEvent ¶
func (r Resource) HandleEvent(response http.ResponseWriter, request *http.Request)
HandleEvent processes an incoming HTTP event for the event listener.
Click to show internal directories.
Click to hide internal directories.