Documentation ¶
Index ¶
- Constants
- func StateItemKey(trigger string, conditionResult triggers.ConditionResult, ...) string
- func SubscribeAnnotationKey(trigger string, service string) string
- type NotificationsState
- type Subscriptions
- func (a Subscriptions) GetAll(defaultTriggers ...string) pkg.Subscriptions
- func (a Subscriptions) Has(service string, recipient string) bool
- func (a Subscriptions) Subscribe(trigger string, service string, recipients ...string)
- func (a Subscriptions) Unsubscribe(trigger string, service string, recipient string)
Constants ¶
View Source
const (
AnnotationPrefix = "notifications.argoproj.io"
)
View Source
const (
NotifiedAnnotationKey = "notified." + AnnotationPrefix
)
Variables ¶
This section is empty.
Functions ¶
func StateItemKey ¶
func StateItemKey(trigger string, conditionResult triggers.ConditionResult, dest services.Destination) string
func SubscribeAnnotationKey ¶
Types ¶
type NotificationsState ¶
NotificationsState track notification triggers state (already notified/not notified)
func NewState ¶
func NewState(val string) NotificationsState
func NewStateFromRes ¶
func NewStateFromRes(res metav1.Object) NotificationsState
func (NotificationsState) SetAlreadyNotified ¶
func (s NotificationsState) SetAlreadyNotified(trigger string, result triggers.ConditionResult, dest services.Destination, isNotified bool) bool
SetAlreadyNotified set the state of given trigger/destination and return if state has been changed
type Subscriptions ¶
func (Subscriptions) GetAll ¶
func (a Subscriptions) GetAll(defaultTriggers ...string) pkg.Subscriptions
func (Subscriptions) Subscribe ¶
func (a Subscriptions) Subscribe(trigger string, service string, recipients ...string)
func (Subscriptions) Unsubscribe ¶
func (a Subscriptions) Unsubscribe(trigger string, service string, recipient string)
Click to show internal directories.
Click to hide internal directories.