fake

package
Version: v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0, 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 added in v1.12.0

func (b *Backend) String() string

Source Files

Jump to

Keyboard shortcuts

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