action

package
v0.17.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutorFactory

type ExecutorFactory interface {
	NewDefault(cfg execute.NewDefaultInput) execute.Executor
}

ExecutorFactory facilitates creation of execute.Executor instances.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider provides automations for events.

func NewProvider

func NewProvider(log logrus.FieldLogger, cfg config.Actions, executorFactory ExecutorFactory) *Provider

NewProvider returns new instance of Provider.

func (*Provider) ExecuteEventAction

func (p *Provider) ExecuteEventAction(ctx context.Context, action event.Action) interactive.GenericMessage

ExecuteEventAction executes action for given event. WARNING: The result interactive.Message contains BotNamePlaceholder, which should be replaced before sending the message.

func (*Provider) RenderedActionsForEvent

func (p *Provider) RenderedActionsForEvent(e event.Event, sourceBindings []string) ([]event.Action, error)

RenderedActionsForEvent finds and processes actions for given event.

Jump to

Keyboard shortcuts

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