mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
Audit: some refactoring out of types.go (#25511)
* some refactoring out of types.go * tests for metrics tag, parallelize other tests
This commit is contained in:
@@ -17,6 +17,13 @@ import (
|
||||
|
||||
var _ eventlogger.Node = (*EntryFilter)(nil)
|
||||
|
||||
// EntryFilter should be used to filter audit requests and responses which should
|
||||
// make it to a sink.
|
||||
type EntryFilter struct {
|
||||
// the evaluator for the bexpr expression that should be applied by the node.
|
||||
evaluator *bexpr.Evaluator
|
||||
}
|
||||
|
||||
// NewEntryFilter should be used to create an EntryFilter node.
|
||||
// The filter supplied should be in bexpr format and reference fields from logical.LogInputBexpr.
|
||||
func NewEntryFilter(filter string) (*EntryFilter, error) {
|
||||
|
||||
Reference in New Issue
Block a user