package
0.19.0-rc.4
Repository: https://github.com/stackvista/stackstate-agent.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ArrayBoolContains evaluates array of bool against a value.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ArrayIntMatches weak comparison, a least one element of a should be in b.
ArrayStringContains evaluates array of strings against a value.
ArrayStringMatches weak comparison, a least one element of a should be in b.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IntNot - ^int operator.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Minus - -int operator.
NewContext return a new Context.
NewContextPool returns a new context pool.
NewCookie returns a new random cookie.
NewError returns a new ErrAstToEval error.
NewOpError returns a new ErrAstToEval error when an operator was used in an invalid manner.
NewOpUnknownError returns a new ErrAstToEval error when an unknown operator was used.
NewRegisterMultipleFields returns a new ErrAstToEval error when a register is used across multiple fields.
NewRegisterNameNotAllowed returns a new ErrAstToEval error when a register name is not allowed.
NewTypeError returns a new ErrAstToEval error when an invalid type was used.
Not - !true operator.
NotOfValue returns the NOT of a value.
No description provided by the author
PatternToRegexp converts pattern to regular expression.
RandString returns a random string of the given length size.
StringEquals evaluates string.

# Constants

Field value types.
defines factor applied by specific operator.
defines factor applied by specific operator.
defines factor applied by specific operator.
defines factor applied by specific operator.
defines factor applied by specific operator.
Field value types.
Field value types.
defines factor applied by specific operator.
Field value types.
Field value types.

# Structs

BoolArrayEvaluator returns an array of bool.
BoolEvaluator returns a bool as result of the evaluation.
Context describes the context used during a rule evaluation.
ContextPool defines a pool of context.
ErrAstToEval describes an error that occurred during the conversion from the AST to an evaluator.
ErrFieldNotFound error when a field is not present in the model.
ErrInvalidPattern is returned for an invalid regular expression.
ErrInvalidRegexp is returned for an invalid regular expression.
ErrIteratorNotSupported error when a field doesn't support iteration.
ErrNonStaticPattern when pattern operator is used on a non static value.
ErrNotSupported returned when something is not supported on a field.
ErrRuleParse describes a parsing error and its position in the expression.
ErrValueTypeMismatch error when the given value is not having the correct type.
EvaluatorStringer implements the stringer in order to show the result of an evaluation.
FieldValue describes a field value with its type.
IntArrayEvaluator returns an array of int.
IntEvaluator returns an int as result of the evaluation.
Macro - Macro object identified by an `ID` containing a SECL `Expression`.
MacroEvaluator - Evaluation part of a Macro.
Opts are the options to be passed to the evaluator.
Register describes a register that can be used by a set.
Rule - Rule object identified by an `ID` containing a SECL `Expression`.
RuleEvaluator - Evaluation part of a Rule.
StringArrayEvaluator returns an array of strings.
StringEvaluator returns a string as result of the evaluation.
VariableValue describes secl variable.

# Interfaces

Evaluator is the interface of an evaluator.
Event is an interface that an Event has to implement for the evaluation.
Iterator interface of a field iterator.
Model - interface that a model has to implement for the rule compilation.

# Type aliases

BoolEvalFnc describe a eval function return a boolean.
EventType is the type of an event.
Field name.
FieldValueType represents the type of the value of a field.
MacroID - ID of a Macro.
RegisterID identify a register ID.
Registers defines all available registers.
RuleID - ID of a Rule.