slack

package
v0.0.0-...-5062ac1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

Notifier describes a Slack notifier

func New

func New(commonConfig types.NotifiersCommonConfig, slackConfig NotifierSlackConfig, logger *zap.SugaredLogger) (*Notifier, error)

New Slack Notifier

func (*Notifier) GetNotifierName

func (n *Notifier) GetNotifierName() string

GetNotifierName returns the driver's name

func (*Notifier) Notify

func (n *Notifier) Notify(obj client.Object, event corev1.Event, notifType types.NotificationType) error

Notify generates a notification for generic k8s events

type NotifierSlackConfig

type NotifierSlackConfig struct {
	Enabled              bool   `yaml:"enabled"`
	TokenFilepath        string `yaml:"tokenFilepath"`
	MirrorSlackChannelID string `yaml:"mirrorSlackChannelId"`
}

Jump to

Keyboard shortcuts

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