fake

package
v0.17.8-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fake provides a fake audit.Backend interface implementation for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL