sendemail

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "sendEmail"
	PayloadType   = "sendEmail.sent"

	RecipientTypeUser  = "user"
	RecipientTypeRole  = "role"
	RecipientTypeGroup = "group"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Recipients []Recipient `json:"recipients" mapstructure:"recipients"`
	Subject    string      `json:"subject" mapstructure:"subject"`
	Body       string      `json:"body" mapstructure:"body"`
}

type OutputMetadata

type OutputMetadata struct {
	Subject string `json:"subject"`
}

type Recipient

type Recipient struct {
	Type  string `json:"type" mapstructure:"type"`
	User  string `json:"user" mapstructure:"user"`
	Role  string `json:"role" mapstructure:"role"`
	Group string `json:"group" mapstructure:"group"`
}

type SendEmail

type SendEmail struct{}

func (*SendEmail) Actions

func (c *SendEmail) Actions() []core.Action

func (*SendEmail) Cancel

func (c *SendEmail) Cancel(ctx core.ExecutionContext) error

func (*SendEmail) Cleanup

func (c *SendEmail) Cleanup(ctx core.SetupContext) error

func (*SendEmail) Color

func (c *SendEmail) Color() string

func (*SendEmail) Configuration

func (c *SendEmail) Configuration() []configuration.Field

func (*SendEmail) Description

func (c *SendEmail) Description() string

func (*SendEmail) Documentation

func (c *SendEmail) Documentation() string

func (*SendEmail) ExampleOutput

func (c *SendEmail) ExampleOutput() map[string]any

func (*SendEmail) Execute

func (c *SendEmail) Execute(ctx core.ExecutionContext) error

func (*SendEmail) HandleAction

func (c *SendEmail) HandleAction(ctx core.ActionContext) error

func (*SendEmail) HandleWebhook

func (*SendEmail) Icon

func (c *SendEmail) Icon() string

func (*SendEmail) Label

func (c *SendEmail) Label() string

func (*SendEmail) Name

func (c *SendEmail) Name() string

func (*SendEmail) OutputChannels

func (c *SendEmail) OutputChannels(configuration any) []core.OutputChannel

func (*SendEmail) ProcessQueueItem

func (c *SendEmail) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*SendEmail) Setup

func (c *SendEmail) Setup(ctx core.SetupContext) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL