apiserver: k8s.io/apiserver/plugin/pkg/audit/webhook Index | Files

package webhook

import "k8s.io/apiserver/plugin/pkg/audit/webhook"

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

Index

Package Files

webhook.go

Constants

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
)

func NewBackend Uses

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 Uses

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.

Package webhook imports 10 packages (graph) and is imported by 2 packages. Updated 2019-12-04. Refresh now. Tools for package owners.