Documentation ¶
Index ¶
- func NotifiedAnnotationKey() string
- func SetAnnotationPrefix(prefix string)
- func SubscribeAnnotationKey(trigger string, service string) string
- type Annotations
- func (a Annotations) GetDestinations(defaultTriggers []string, serviceDefaultTriggers map[string][]string) services.Destinations
- func (a Annotations) Has(service string, recipient string) bool
- func (a Annotations) Subscribe(trigger string, service string, recipients ...string)
- func (a Annotations) Unsubscribe(trigger string, service string, recipient string)
- type DefaultSubscription
- type DefaultSubscriptions
- type Destination
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotifiedAnnotationKey ¶
func NotifiedAnnotationKey() string
func SetAnnotationPrefix ¶
func SetAnnotationPrefix(prefix string)
SetAnnotationPrefix sets the annotationPrefix to the provided string. defaults to "notifications.argoproj.io"
func SubscribeAnnotationKey ¶
Types ¶
type Annotations ¶
func NewAnnotations ¶
func NewAnnotations(annotations map[string]string) Annotations
func (Annotations) GetDestinations ¶
func (a Annotations) GetDestinations(defaultTriggers []string, serviceDefaultTriggers map[string][]string) services.Destinations
func (Annotations) Subscribe ¶
func (a Annotations) Subscribe(trigger string, service string, recipients ...string)
func (Annotations) Unsubscribe ¶
func (a Annotations) Unsubscribe(trigger string, service string, recipient string)
type DefaultSubscription ¶
type DefaultSubscription struct { // Recipients comma separated list of recipients Recipients []string // Optional trigger name Triggers []string // Options label selector that limits applied applications Selector labels.Selector }
DefaultSubscription holds recipients that receives notification by default.
func (*DefaultSubscription) MarshalJSON ¶
func (s *DefaultSubscription) MarshalJSON() ([]byte, error)
func (*DefaultSubscription) MatchesTrigger ¶
func (s *DefaultSubscription) MatchesTrigger(trigger string) bool
func (*DefaultSubscription) UnmarshalJSON ¶
func (s *DefaultSubscription) UnmarshalJSON(data []byte) error
type DefaultSubscriptions ¶
type DefaultSubscriptions []DefaultSubscription
type Destination ¶
Destination holds notification destination details
type Subscription ¶
type Subscription struct { Trigger []string Destinations []Destination }
Click to show internal directories.
Click to hide internal directories.