package fake
import "k8s.io/apiserver/plugin/pkg/audit/fake"
Package fake provides a fake audit.Backend interface implementation for testing.
Index ¶
Types ¶
type Backend ¶
type Backend struct { OnRequest func(events []*auditinternal.Event) }
Backend is a fake audit backend for testing purposes.
func (*Backend) ProcessEvents ¶
func (b *Backend) ProcessEvents(ev ...*auditinternal.Event) bool
ProcessEvents calls a callback on a batch, if present.
func (*Backend) Run ¶
Run does nothing.
func (*Backend) Shutdown ¶
func (b *Backend) Shutdown()
Shutdown does nothing.
func (*Backend) String ¶
Source Files ¶
doc.go fake.go
- Version
- v0.23.1-rc.0
- Published
- Dec 7, 2021
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 9 minutes ago –
Tools for package owners.