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).
Click to show internal directories.
Click to hide internal directories.