Documentation
¶
Overview ¶
Package notifier sends deployment lifecycle notifications to external systems.
Index ¶
- type Noop
- type Notifier
- type Slack
- func (sl *Slack) NotifyOnDeploymentFailed(workloadName string, meta git_provider.DeploymentMetadata, err error)
- func (sl *Slack) NotifyOnDeploymentSuccess(workloadName string, dep state.DeploymentSnapshot)
- func (sl *Slack) NotifyOnNewDeploymentStarted(workloadName string, meta git_provider.DeploymentMetadata)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Noop ¶
type Noop struct{}
func (Noop) NotifyOnDeploymentFailed ¶
func (Noop) NotifyOnDeploymentFailed(workloadName string, meta git_provider.DeploymentMetadata, err error)
func (Noop) NotifyOnDeploymentSuccess ¶
func (Noop) NotifyOnDeploymentSuccess(workloadName string, dep state.DeploymentSnapshot)
func (Noop) NotifyOnNewDeploymentStarted ¶
func (Noop) NotifyOnNewDeploymentStarted(workloadName string, meta git_provider.DeploymentMetadata)
type Notifier ¶
type Notifier interface {
NotifyOnNewDeploymentStarted(workloadName string, meta git_provider.DeploymentMetadata)
NotifyOnDeploymentFailed(workloadName string, meta git_provider.DeploymentMetadata, err error)
NotifyOnDeploymentSuccess(workloadName string, dep state.DeploymentSnapshot)
}
Notifier sends deployment state notifications or alert to external destinations like Slack.
Since alerts are not core business logic, error encountered should be logged
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
func (*Slack) NotifyOnDeploymentFailed ¶
func (sl *Slack) NotifyOnDeploymentFailed(workloadName string, meta git_provider.DeploymentMetadata, err error)
func (*Slack) NotifyOnDeploymentSuccess ¶
func (sl *Slack) NotifyOnDeploymentSuccess(workloadName string, dep state.DeploymentSnapshot)
func (*Slack) NotifyOnNewDeploymentStarted ¶
func (sl *Slack) NotifyOnNewDeploymentStarted(workloadName string, meta git_provider.DeploymentMetadata)
Click to show internal directories.
Click to hide internal directories.