actionners

package
v0.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func Trigger

func Trigger(rule *rules.Rule, event *events.Event)

Types

type Actionner

type Actionner struct {
	Name            string
	Category        string
	Action          func(rule *rules.Rule, event *events.Event) (utils.LogLine, error)
	CheckParameters func(rule *rules.Rule) error
	Init            func() error
	Checks          []checkActionner
	Continue        bool
	Before          bool
}

func (*Actionner) MustContinue

func (actionner *Actionner) MustContinue() bool

func (*Actionner) RunBefore

func (actionner *Actionner) RunBefore() bool

type Actionners

type Actionners []*Actionner

func GetActionners

func GetActionners() *Actionners

func GetDefaultActionners

func GetDefaultActionners() *Actionners

func (*Actionners) Add

func (actionners *Actionners) Add(actionner ...*Actionner)

func (*Actionners) GetActionner

func (actionners *Actionners) GetActionner(category, name string) *Actionner

Directories

Path Synopsis
kubernetes

Jump to

Keyboard shortcuts

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