audit

package
v1.4.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAudit

func WithAudit(handler http.Handler, attributeGetter apiserver.RequestAttributeGetter, out io.Writer) http.Handler

WithAudit decorates a http.Handler with audit logging information for all the requests coming to the server. Each audit log contains two entries: 1. the request line containing:

  • unique id allowing to match the response line (see 2)
  • source ip of the request
  • HTTP method being invoked
  • original user invoking the operation
  • impersonated user for the operation
  • namespace of the request or <none>
  • uri is the full URI as requested

2. the response line containing:

  • the unique id from 1
  • response code

Types

This section is empty.

Jump to

Keyboard shortcuts

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