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.19.6
- Published
- Dec 18, 2020
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 4 minutes ago –
Tools for package owners.