package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Apr 30, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Context struct {
Data map[string]interface{}
}
Context makes it easy to execute CEL expressions on a hook body.
New creates and returns a Context for evaluating expressions.
Evaluate evaluates the provided expression and returns the result.
EvaluateToString evaluates the provided expression, and marshals it to a string
before returning.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.