notifier

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 (c *Chatops) CheckMessageStatus(id string) (string, error)

func (*Chatops) GetMessageStatus added in v1.0.0

func (c *Chatops) GetMessageStatus(id string) (ChatopsMessageStatus, error)

func (*Chatops) Name added in v1.0.0

func (c *Chatops) Name() string

func (*Chatops) Notify added in v1.0.0

func (c *Chatops) Notify(vr *common.VerifyResult) 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 ChatopsOptions struct {
	URL      string
	Bot      string
	Channel  string
	UserID   string
	Timeout  int
	Insecure bool
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(options LoggerOptions, observability *common.Observability) *Logger

func (*Logger) Name

func (s *Logger) Name() string

func (*Logger) Notify

func (s *Logger) Notify(vr *common.VerifyResult) error

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) Name

func (s *Slack) Name() string

func (*Slack) Notify

func (s *Slack) Notify(vr *common.VerifyResult) error

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

type SlackOptions struct {
	vendors.SlackOptions
	Channel  string
	Message  string
	Runbooks string
	Offset   time.Duration
}

Jump to

Keyboard shortcuts

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