Documentation
¶
Overview ¶
Package eval provides an Evaluator to run CEL expressions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
Evaluator supports running and optionally caching CEL expressions.
func NewEvaluator ¶
func (*Evaluator) CompileAndCache ¶
type FileCache ¶
type FileCache struct {
// contains filtered or unexported fields
}
func NewFileCache ¶
NewFileCache creates a Cache that can persist to a file.
This function will read the file. The caller will need to run the FileCache.Save method to save the file.
func NewFileCacheWithContent ¶
NewFileCacheWithContent creates a FileCache with existing content, e.g. from an embedded file.
Optionally, set a filename and call FileCache.Save to save the file.
Click to show internal directories.
Click to hide internal directories.