Documentation ¶
Index ¶
- type EmailService
- type ExpiringTokenEmailData
- type NoOpService
- func (s *NoOpService) IsValid() bool
- func (s *NoOpService) SendExpiringTokenEmail(ctx context.Context, emails []string, data ExpiringTokenEmailData) error
- func (s *NoOpService) SendTenantInviteEmail(ctx context.Context, email string, data TenantInviteEmailData) error
- func (s *NoOpService) SendWorkflowRunFailedAlerts(ctx context.Context, emails []string, data WorkflowRunsFailedEmailData) error
- type TenantInviteEmailData
- type WorkflowRunsFailedEmailData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailService ¶
type EmailService interface { // for clients to show email settings IsValid() bool SendTenantInviteEmail(ctx context.Context, email string, data TenantInviteEmailData) error SendWorkflowRunFailedAlerts(ctx context.Context, emails []string, data WorkflowRunsFailedEmailData) error SendExpiringTokenEmail(ctx context.Context, emails []string, data ExpiringTokenEmailData) error }
type ExpiringTokenEmailData ¶ added in v0.30.0
type ExpiringTokenEmailData struct { ExpiresAtAbsoluteDate string `json:"expires_at_absolute_date"` ExpiresAtRelativeDate string `json:"expires_at_relative_date"` TokenName string `json:"token_name"` Subject string `json:"subject"` TenantName string `json:"tenant_name"` TokenSettings string `json:"token_settings"` SettingsLink string `json:"settings_link"` }
type NoOpService ¶
type NoOpService struct{}
func (*NoOpService) IsValid ¶ added in v0.25.0
func (s *NoOpService) IsValid() bool
func (*NoOpService) SendExpiringTokenEmail ¶ added in v0.30.0
func (s *NoOpService) SendExpiringTokenEmail(ctx context.Context, emails []string, data ExpiringTokenEmailData) error
func (*NoOpService) SendTenantInviteEmail ¶
func (s *NoOpService) SendTenantInviteEmail(ctx context.Context, email string, data TenantInviteEmailData) error
func (*NoOpService) SendWorkflowRunFailedAlerts ¶ added in v0.25.0
func (s *NoOpService) SendWorkflowRunFailedAlerts(ctx context.Context, emails []string, data WorkflowRunsFailedEmailData) error
type TenantInviteEmailData ¶
type WorkflowRunsFailedEmailData ¶ added in v0.25.0
type WorkflowRunsFailedEmailData struct { Items []alerttypes.WorkflowRunFailedItem `json:"items"` Subject string `json:"subject"` Summary string `json:"summary"` TenantName string `json:"tenant_name"` SettingsLink string `json:"settings_link"` }
Click to show internal directories.
Click to hide internal directories.