Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureDevOpsNotification ¶
func NewAzureDevOpsNotification ¶
func NewAzureDevOpsNotification(address string, token string) (*AzureDevOpsNotification, error)
func (*AzureDevOpsNotification) Send ¶
func (a *AzureDevOpsNotification) Send(ctx context.Context, event NotificationEvent) error
type DiscardNotification ¶
type DiscardNotification struct{}
func NewDiscardNotification ¶
func NewDiscardNotification() *DiscardNotification
func (*DiscardNotification) Send ¶
func (n *DiscardNotification) Send(_ context.Context, _ NotificationEvent) error
type GitHubNotification ¶
func NewGitHubNotification ¶
func NewGitHubNotification(address string, token string) (*GitHubNotification, error)
func (*GitHubNotification) Send ¶
func (g *GitHubNotification) Send(ctx context.Context, event NotificationEvent) error
type InMemNotification ¶
type InMemNotification struct {
// contains filtered or unexported fields
}
func NewInMemNotification ¶
func NewInMemNotification() *InMemNotification
func (*InMemNotification) GetNotifications ¶
func (n *InMemNotification) GetNotifications() []NotificationEvent
func (*InMemNotification) ResetNotifications ¶
func (n *InMemNotification) ResetNotifications()
func (*InMemNotification) Send ¶
func (n *InMemNotification) Send(ctx context.Context, event NotificationEvent) error
func (*InMemNotification) SendResponse ¶
func (n *InMemNotification) SendResponse(err error)
type Notification ¶
type Notification interface {
Send(ctx context.Context, event NotificationEvent) error
}
func NewNotificationClient ¶
func NewNotificationClient(cfg config.ReconcileConfig) (Notification, error)
type NotificationEvent ¶
type NotificationEvent struct { Revision string `json:"revision"` State NotificationState `json:"state"` Name string `json:"name"` Description string `json:"description"` }
func (*NotificationEvent) Equal ¶
func (e *NotificationEvent) Equal(other NotificationEvent) bool
type NotificationProvider ¶
type NotificationProvider int
const ( NotificationProviderAzureDevOps NotificationProvider = iota NotificationProviderGitHub NotificationProviderUnknown )
type NotificationState ¶
type NotificationState int
const ( NotificationStateSuccess NotificationState = iota NotificationStateFailure )
Click to show internal directories.
Click to hide internal directories.