Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WebhookListener ¶
type WebhookListener struct { LocalClient client.Client RemoteClient client.Client DynamicClient dynamic.Interface TLSKeyFile string TLSCrtFile string // contains filtered or unexported fields }
WebhookListener is a generic webhook event listener
func CreateWebhookListener ¶
func CreateWebhookListener(config, remoteConfig *rest.Config, scheme *runtime.Scheme, tlsKeyFile, tlsCrtFile string) (*WebhookListener, error)
CreateWebhookListener creates a WebHook listener instance
func (*WebhookListener) HandleWebhook ¶
func (listener *WebhookListener) HandleWebhook(w http.ResponseWriter, r *http.Request)
HandleWebhook handles incoming webhook events
func (*WebhookListener) ParseRequest ¶
func (listener *WebhookListener) ParseRequest(r *http.Request) (body []byte, signature string, event interface{}, err error)
ParseRequest parses incoming WebHook event request
func (*WebhookListener) Start ¶
func (listener *WebhookListener) Start(l <-chan struct{}) error
Start the GutHub WebHook event listener
Click to show internal directories.
Click to hide internal directories.