Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
Execute(event *eventqueue.Event) error
}
Executor interface should be implemented by all executors. Executor interface is compatible with the QueueExecutor interface in eventqueue package.
type LogExecutor ¶
type LogExecutor struct{}
LogExecutor is the simplest executor which will just log the event. It is used for testing purposes. Compatible with the Executor Interface
func (*LogExecutor) Execute ¶
func (le *LogExecutor) Execute(event *eventqueue.Event) error
Execute logs the event.
type Opts ¶
type Opts struct { ScriptDir string ScriptPrefix string AuthType client.AuthType client.EventsRunnerClientOpts }
Opts contains options for creating any type of executor. New method will error out if a required config is not provided for the specific executor. - ScriptDir: Directory where the scripts are located. - ScriptPrefix: Prefix of the scripts. - AuthType: Type of authentication to be used for eventsrunner client auth. - EventsRunnerClientOpts: Options for creating eventsrunner client. Refer to the eventsrunner client package for more details.