Documentation
¶
Index ¶
- Constants
- type Chatops
- func (c *Chatops) CheckMessageStatus(id string) (string, error)
- func (c *Chatops) GetMessageStatus(id string) (ChatopsMessageStatus, error)
- func (c *Chatops) Name() string
- func (c *Chatops) Notify(vr *common.VerifyResult) error
- func (c *Chatops) NotifyDefault(vr *common.VerifyDefaultResult) error
- func (c *Chatops) NotifyDefaultWithTracking(vr *common.VerifyDefaultResult) ([]*common.NotifyDefaultTrackingItem, error)
- type ChatopsMessageStatus
- type ChatopsOptions
- type Logger
- type LoggerOptions
- type Slack
- type SlackOptions
Constants ¶
View Source
const NotifierChatopsName = "Chatops"
View Source
const NotifierLoggerName = "Logger"
View Source
const NotifierSlackName = "Slack"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chatops ¶ added in v1.0.0
type Chatops struct {
// contains filtered or unexported fields
}
func NewChatops ¶ added in v1.0.0
func NewChatops(options ChatopsOptions, observability *common.Observability, metrics *common.VerifierMetrics) *Chatops
func (*Chatops) CheckMessageStatus ¶ added in v1.0.0
func (*Chatops) GetMessageStatus ¶ added in v1.0.0
func (c *Chatops) GetMessageStatus(id string) (ChatopsMessageStatus, error)
func (*Chatops) NotifyDefault ¶ added in v1.0.0
func (c *Chatops) NotifyDefault(vr *common.VerifyDefaultResult) error
func (*Chatops) NotifyDefaultWithTracking ¶ added in v1.0.0
func (c *Chatops) NotifyDefaultWithTracking(vr *common.VerifyDefaultResult) ([]*common.NotifyDefaultTrackingItem, error)
type ChatopsMessageStatus ¶ added in v1.0.0
type ChatopsMessageStatus string
const ( ChatopsStatusPending ChatopsMessageStatus = "pending" ChatopsStatusDelivered ChatopsMessageStatus = "delivered" ChatopsStatusFailed ChatopsMessageStatus = "failed" ChatopsStatusWaitingApproval ChatopsMessageStatus = "waiting_approval" ChatopsStatusRejected ChatopsMessageStatus = "rejected" ChatopsStatusNotFound ChatopsMessageStatus = "not_found" )
type ChatopsOptions ¶ added in v1.0.0
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger(options LoggerOptions, observability *common.Observability) *Logger
type LoggerOptions ¶
type LoggerOptions struct {
}
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
func NewSlack ¶
func NewSlack(options SlackOptions, observability *common.Observability, metrics *common.VerifierMetrics) *Slack
func (*Slack) NotifyDefault ¶ added in v1.0.0
func (s *Slack) NotifyDefault(vr *common.VerifyDefaultResult) error
NotifyDefault implements common.NotifierDefault for the Default pipeline. It renders the message template with VerifyDefaultResult as context.
type SlackOptions ¶
Click to show internal directories.
Click to hide internal directories.