Documentation ¶
Index ¶
- type Emitter
- func (e *Emitter) GetListeners() common.Listeners
- func (e *Emitter) Listen(ctx context.Context)
- func (e *Emitter) Logs() []any
- func (e *Emitter) Notify(event testkube.Event)
- func (e *Emitter) Reconcile(ctx context.Context)
- func (e *Emitter) Register(listener common.Listener)
- func (e *Emitter) UpdateListeners(listeners common.Listeners)
- type Loader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct { Results chan testkube.EventResult Listeners common.Listeners Loader *Loader Log *zap.SugaredLogger Bus bus.Bus ClusterName string Envs map[string]string // contains filtered or unexported fields }
Emitter handles events emitting for webhooks
func NewEmitter ¶
NewEmitter returns new emitter instance
func (*Emitter) GetListeners ¶ added in v1.16.29
func (*Emitter) Listen ¶ added in v1.5.17
Listen runs emitter workers responsible for sending HTTP requests
func (*Emitter) UpdateListeners ¶ added in v1.5.17
UpdateListeners updates listeners list
type Loader ¶
type Loader struct { Log *zap.SugaredLogger Loaders []common.ListenerLoader }
Loader updates list of available listeners in the background as we don't want to load them on each event
func (*Loader) Register ¶
func (s *Loader) Register(loader common.ListenerLoader)
Register registers new listener reconciler
Click to show internal directories.
Click to hide internal directories.