Documentation ¶
Index ¶
- type ExprType
- type Expression
- func (e *Expression) EvalGoTemplate(input map[string]string) (string, error)
- func (e *Expression) EvalStringFormat(inputs ...interface{}) string
- func (e *Expression) MatchEvaluate(inputMap map[string]string, lineInput string) (bool, error)
- func (e *Expression) MatchGlob(input string) bool
- func (e *Expression) MatchGoTemplate(input map[string]string) (bool, error)
- func (e *Expression) MatchRegex(input string) (bool, error)
- func (e *Expression) StringEvaluate(inputMap map[string]string, inputs []interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expression ¶
type Expression struct {
// contains filtered or unexported fields
}
func NewExpression ¶
func NewExpression(exprType ExprType, expression string) *Expression
func NewFromConfig ¶
func NewFromConfig(expr configs.Expression) (*Expression, error)
func (*Expression) EvalGoTemplate ¶
func (e *Expression) EvalGoTemplate(input map[string]string) (string, error)
func (*Expression) EvalStringFormat ¶
func (e *Expression) EvalStringFormat(inputs ...interface{}) string
func (*Expression) MatchEvaluate ¶
func (*Expression) MatchGlob ¶
func (e *Expression) MatchGlob(input string) bool
func (*Expression) MatchGoTemplate ¶
func (e *Expression) MatchGoTemplate(input map[string]string) (bool, error)
func (*Expression) MatchRegex ¶
func (e *Expression) MatchRegex(input string) (bool, error)
func (*Expression) StringEvaluate ¶
func (e *Expression) StringEvaluate(inputMap map[string]string, inputs []interface{}) (string, error)
Click to show internal directories.
Click to hide internal directories.