Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "enforced"
PluginName is the name reported in error metrics.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend filters audit events according to the policy trimming them as necessary to match the level
func (Backend) ProcessEvents ¶
func (b Backend) ProcessEvents(events ...*auditinternal.Event) bool
ProcessEvents enforces policy on a shallow copy of the given event dropping any sections that don't conform
Click to show internal directories.
Click to hide internal directories.