Documentation ¶
Index ¶
- type WebhookListener
- func (l *WebhookListener) Events() []testkube.EventType
- func (l *WebhookListener) Kind() string
- func (l *WebhookListener) Metadata() map[string]string
- func (l *WebhookListener) Name() string
- func (l *WebhookListener) Notify(event testkube.Event) (result testkube.EventResult)
- func (l *WebhookListener) PayloadObjectField() string
- func (l *WebhookListener) Selector() string
- type WebhooksLister
- type WebhooksLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookListener ¶
type WebhookListener struct { Uri string Log *zap.SugaredLogger HttpClient *http.Client // contains filtered or unexported fields }
func NewWebhookListener ¶
func NewWebhookListener(name, uri, selector string, events []testkube.EventType, payloadObjectField string) *WebhookListener
func (*WebhookListener) Events ¶
func (l *WebhookListener) Events() []testkube.EventType
func (*WebhookListener) Kind ¶
func (l *WebhookListener) Kind() string
func (*WebhookListener) Metadata ¶
func (l *WebhookListener) Metadata() map[string]string
func (*WebhookListener) Name ¶ added in v1.5.17
func (l *WebhookListener) Name() string
func (*WebhookListener) Notify ¶
func (l *WebhookListener) Notify(event testkube.Event) (result testkube.EventResult)
func (*WebhookListener) PayloadObjectField ¶ added in v1.10.16
func (l *WebhookListener) PayloadObjectField() string
func (*WebhookListener) Selector ¶
func (l *WebhookListener) Selector() string
type WebhooksLister ¶
type WebhooksLister interface {
List(selector string) (*executorsv1.WebhookList, error)
}
WebhooksLoader loads webhooks from kubernetes
type WebhooksLoader ¶
type WebhooksLoader struct {
WebhooksClient WebhooksLister
}
func NewWebhookLoader ¶
func NewWebhookLoader(webhooksClient WebhooksLister) *WebhooksLoader
func (WebhooksLoader) Kind ¶
func (r WebhooksLoader) Kind() string
Click to show internal directories.
Click to hide internal directories.