model

package
v0.0.0-...-7e76064 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Action string
	With   map[string]interface{}
}

type Configuration

type Configuration struct {
	Rules []Rule
}

func Load

func Load(cfg *[]byte) (Configuration, error)

func (*Configuration) Filter

func (config *Configuration) Filter(event *core.Event) []Rule

type Rule

type Rule struct {
	If   Trigger
	Then Action
}

type Tenant

type Tenant struct {
	Config  Configuration
	Environ map[string]string
}

type Trigger

type Trigger struct {
	Trigger string
	When    map[string]string
}

Jump to

Keyboard shortcuts

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