Help us shape the future of Go! Take the 2026 Go Developer Survey

file

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2015 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(conf map[string]string) (audit.Backend, error)

Types

type Backend

type Backend struct {
	Path   string
	LogRaw bool
	// contains filtered or unexported fields
}

Backend is the audit backend for the file-based audit store.

NOTE: This audit backend is currently very simple: it appends to a file. It doesn't do anything more at the moment to assist with rotation or reset the write cursor, this should be done in the future.

func (*Backend) LogRequest

func (b *Backend) LogRequest(auth *logical.Auth, req *logical.Request) error

func (*Backend) LogResponse

func (b *Backend) LogResponse(
	auth *logical.Auth,
	req *logical.Request,
	resp *logical.Response,
	err error) error

Jump to

Keyboard shortcuts

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