Documentation
¶
Overview ¶
Package notifiers provides Slack notification formatting for GitHub and Okta events.
Package notifiers provides Slack notification formatting and sending.
Index ¶
- type SlackNotifier
- func (s *SlackNotifier) NotifyOktaSync(ctx context.Context, reports []*okta.SyncReport, githubOrg string) error
- func (s *SlackNotifier) NotifyOrphanedUsers(ctx context.Context, report *okta.OrphanedUsersReport) error
- func (s *SlackNotifier) NotifyPRBypass(ctx context.Context, result *github.PRComplianceResult, repoFullName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackNotifier ¶
type SlackNotifier struct {
// contains filtered or unexported fields
}
SlackNotifier sends formatted messages to Slack channels.
func NewSlackNotifier ¶
func NewSlackNotifier(token, channel string) *SlackNotifier
NewSlackNotifier creates a Slack notifier with default API URL.
func NewSlackNotifierWithAPIURL ¶
func NewSlackNotifierWithAPIURL(token, channel, apiURL string) *SlackNotifier
NewSlackNotifierWithAPIURL creates a Slack notifier with custom API URL. useful for testing with mock servers.
func (*SlackNotifier) NotifyOktaSync ¶
func (s *SlackNotifier) NotifyOktaSync(ctx context.Context, reports []*okta.SyncReport, githubOrg string) error
NotifyOktaSync sends a Slack notification with Okta sync results.
func (*SlackNotifier) NotifyOrphanedUsers ¶
func (s *SlackNotifier) NotifyOrphanedUsers(ctx context.Context, report *okta.OrphanedUsersReport) error
NotifyOrphanedUsers sends a Slack notification about organization members not in any synced teams.
func (*SlackNotifier) NotifyPRBypass ¶
func (s *SlackNotifier) NotifyPRBypass(ctx context.Context, result *github.PRComplianceResult, repoFullName string) error
NotifyPRBypass sends a Slack notification when branch protection is bypassed.