apiserverk8s.io/apiserver/plugin/pkg/audit/fake Index | Files

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

func (b *Backend) Run(stopCh <-chan struct{}) error

Run does nothing.

func (*Backend) Shutdown

func (b *Backend) Shutdown()

Shutdown does nothing.

func (*Backend) String

func (b *Backend) String() string

Source Files

doc.go fake.go

Version
v0.27.0
Published
Apr 11, 2023
Platform
js/wasm
Imports
2 packages
Last checked
19 minutes ago

Tools for package owners.