webhook

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package webhook implements the audit.Backend interface using HTTP webhooks.

Index

Constants

View Source
const (
	// ModeBatch indicates that the webhook should buffer audit events
	// internally, sending batch updates either once a certain number of
	// events have been received or a certain amount of time has passed.
	ModeBatch = "batch"
	// ModeBlocking causes the webhook to block on every attempt to process
	// a set of events. This causes requests to the API server to wait for a
	// round trip to the external audit service before sending a response.
	ModeBlocking = "blocking"
)

Variables

View Source
var AllowedModes = []string{
	ModeBatch,
	ModeBlocking,
}

AllowedModes is the modes known by this webhook.

Functions

func NewBackend

func NewBackend(kubeConfigFile string, mode string) (audit.Backend, error)

NewBackend returns an audit backend that sends events over HTTP to an external service. The mode indicates the caching behavior of the webhook. Either blocking (ModeBlocking) or buffered with batch POSTs (ModeBatch).

Types

This section is empty.

Jump to

Keyboard shortcuts

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