RuleFileParser

package
v0.0.0-...-a93fc24 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: GPL-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuleFileParser

type RuleFileParser struct {
	LogClient *Logging.Client
	// contains filtered or unexported fields
}

RuleFileParser represents a single rule file

func NewRuleFileParser

func NewRuleFileParser(ruleFile string) (*RuleFileParser, error)

NewRuleFileParser creates a new RuleFileParser, returns an error if the object is not valid

func (RuleFileParser) EvaluateJSON

func (rule RuleFileParser) EvaluateJSON(event Event.Event)

EvaluateJSON will be called if a new Event occurred an the rulefile will be executed

type RuleLine

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

RuleLine represents a single rule in a Rulefile

func (RuleLine) EvaluateLine

func (line RuleLine) EvaluateLine(event Event.Event, eventMetadata map[string]interface{}) (bool, error)

EvaluateLine returns if state of the condition and an error if the result is not valid

func (RuleLine) LastLine

func (line RuleLine) LastLine() bool

LastLine returns true if the current line is the last line to check

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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