triggers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessRunner

type ProcessRunner interface {
	Run(name string, data *map[string]string) error
}

ProcessRunner runs processes based on rule names.

type TriggerRunner

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

TriggerRunner instances can run processes based on configured rules

func NewTriggerRunner

func NewTriggerRunner(config *settings.Settings) *TriggerRunner

NewTriggerRunner creates and initializes a TriggerRunner

func (*TriggerRunner) Run

func (tr *TriggerRunner) Run(name string, data *map[string]string) error

Run runs the trigger (if any configured for that name) with environment variables defined in data.

Jump to

Keyboard shortcuts

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