Documentation
¶
Overview ¶
Package notification performs the project notification settings workflows behind the volcano notifications subcommands.
Index ¶
- Constants
- func NotifyOnValues() []string
- type Service
- func (s Service) Get(ctx context.Context) (*apiclient.NotificationSettings, error)
- func (s Service) RotateWebhookSecret(ctx context.Context) (*apiclient.NotificationSettings, error)
- func (s Service) SendTest(ctx context.Context) (*apiclient.NotificationTestResult, error)
- func (s Service) Update(ctx context.Context, update Update) (*apiclient.NotificationSettings, error)
- type Update
Constants ¶
View Source
const ( NotifyOnFirstFailure = string(apiclient.SchedulerFailureNotifyOnFirstFailure) NotifyOnConsecutiveFailures = string(apiclient.SchedulerFailureNotifyOnConsecutiveFailures) )
When a failing scheduler is announced.
View Source
const ( MinThreshold = 1 MaxThreshold = 100 )
Threshold bounds, as the API enforces them.
View Source
const MaxRecipients = 10
MaxRecipients is the most email recipients the API accepts.
Variables ¶
This section is empty.
Functions ¶
func NotifyOnValues ¶
func NotifyOnValues() []string
NotifyOnValues lists the accepted --notify-on values.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service performs notification settings workflows against the current project.
func NewService ¶
func NewService(deps cliruntime.Deps) Service
NewService returns a notification settings service.
func (Service) RotateWebhookSecret ¶
RotateWebhookSecret replaces the current project's webhook signing secret.
Click to show internal directories.
Click to hide internal directories.