package enforced
import "k8s.io/apiserver/plugin/pkg/audit/dynamic/enforced"
Index ¶
Constants ¶
const PluginName = "enforced"
PluginName is the name reported in error metrics.
Functions ¶
func NewBackend ¶
NewBackend returns an enforced audit backend that wraps delegate backend. Enforced backend automatically runs and shuts down the delegate backend.
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
func (Backend) Run ¶
Run the delegate backend
func (Backend) Shutdown ¶
func (b Backend) Shutdown()
Shutdown the delegate backend
func (Backend) String ¶
String returns a string representation of the backend
Source Files ¶
enforced.go
- Version
- v0.17.12
- Published
- Sep 16, 2020
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 14 minutes ago –
Tools for package owners.