slack

package
v1.12.5-beta001 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackListener

type SlackListener struct {
	Log *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewSlackListener

func NewSlackListener(name, selector string, events []testkube.EventType, notifier *slack.Notifier) *SlackListener

func (*SlackListener) Events

func (l *SlackListener) Events() []testkube.EventType

func (*SlackListener) Kind

func (l *SlackListener) Kind() string

func (*SlackListener) Metadata

func (l *SlackListener) Metadata() map[string]string

func (*SlackListener) Name added in v1.5.17

func (l *SlackListener) Name() string

func (*SlackListener) Notify

func (l *SlackListener) Notify(event testkube.Event) (result testkube.EventResult)

func (*SlackListener) Selector

func (l *SlackListener) Selector() string

type SlackLoader

type SlackLoader struct {
	Log *zap.SugaredLogger
	// contains filtered or unexported fields
}

SlackLoader is a reconciler for slack events for now it returns single listener for slack

func NewSlackLoader

func NewSlackLoader(messageTemplate, configString string, events []testkube.EventType) *SlackLoader

func (*SlackLoader) Kind

func (r *SlackLoader) Kind() string

func (*SlackLoader) Load

func (r *SlackLoader) Load() (listeners common.Listeners, err error)

Load returns single listener for slack (as we don't have any sophisticated config yet)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL