webhook

package
v1.14.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// PluginName is the name of this plugin, to be used in help and logs.
	PluginName = "webhook"

	// DefaultInitialBackoff is the default amount of time to wait before
	// retrying sending audit events through a webhook.
	DefaultInitialBackoff = 10 * time.Second
)

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(kubeConfigFile string, groupVersion schema.GroupVersion, initialBackoff time.Duration) (audit.Backend, error)

NewBackend returns an audit backend that sends events over HTTP to an external service.

func NewDynamicBackend added in v1.13.0

func NewDynamicBackend(rc *rest.RESTClient, initialBackoff time.Duration) audit.Backend

NewDynamicBackend returns an audit backend configured from a REST client that sends events over HTTP to an external service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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