notification

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationStack

type NotificationStack struct {
	Katalog      *katalog.Katalog
	State        *NotificationState
	ResolverData map[string]interface{}
}

type NotificationState

type NotificationState struct {
	// key: operatorName + "|" + conditionKey + "|" + teamName
	LastSent map[string]time.Time
}

NotificationState tracks last-send timestamps per condition+team.

func NewNotificationState

func NewNotificationState() *NotificationState

func (*NotificationState) ProcessConditionNotifications

func (s *NotificationState) ProcessConditionNotifications(
	ctx context.Context,
	k *katalog.Katalog,
	data map[string]interface{},
	cond orktypes.Condition,
	now time.Time,
)

ProcessConditionNotifications evaluates notify: for a single condition, tracking transitions and enforcing per-team intervals.

Called after we've already decided the condition is "passed" (true).

Jump to

Keyboard shortcuts

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