apiserver: k8s.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

Package Files

doc.go fake.go

type Backend Uses

type Backend struct {
    OnRequest func(events []*auditinternal.Event)
}

Backend is a fake audit backend for testing purposes.

func (*Backend) ProcessEvents Uses

func (b *Backend) ProcessEvents(ev ...*auditinternal.Event) bool

ProcessEvents calls a callback on a batch, if present.

func (*Backend) Run Uses

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

Run does nothing.

func (*Backend) Shutdown Uses

func (b *Backend) Shutdown()

Shutdown does nothing.

func (*Backend) String Uses

func (b *Backend) String() string

Package fake imports 2 packages (graph). Updated 2018-11-28. Refresh now. Tools for package owners.