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, groupVersions []schema.GroupVersion) (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.
Click to show internal directories.
Click to hide internal directories.