Version: v0.0.0-...-e6272b8 Latest Latest

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0, Apache-2.0 Imports: 24 Imported by: 0




View Source
const PluginName = "dynamic"

PluginName is the name reported in error metrics.


This section is empty.


func NewBackend

func NewBackend(c *Config) (audit.Backend, error)

NewBackend returns a backend that dynamically updates its configuration based on a shared informer.

func NewDefaultWebhookBatchConfig

func NewDefaultWebhookBatchConfig() *bufferedplugin.BatchConfig

NewDefaultWebhookBatchConfig returns new Batch Config objects populated by default values for dynamic webhooks


type Config

type Config struct {
	// Informer for the audit sinks
	Informer auditinformer.AuditSinkInformer
	// EventConfig holds the configuration for event notifications about the AuditSink API objects
	EventConfig EventConfig
	// BufferedConfig is the runtime buffered configuration
	BufferedConfig *bufferedplugin.BatchConfig
	// WebhookConfig holds the configuration for outgoing webhooks
	WebhookConfig WebhookConfig

Config holds the configuration for the dynamic backend

type EventConfig

type EventConfig struct {
	// Sink for emitting events
	Sink record.EventSink
	// Source holds the source information about the event emitter
	Source corev1.EventSource

EventConfig holds the configurations for sending event notifiations about AuditSink API objects

type WebhookConfig

type WebhookConfig struct {
	// AuthInfoResolverWrapper provides the webhook authentication for in-cluster endpoints
	AuthInfoResolverWrapper webhook.AuthenticationInfoResolverWrapper
	// ServiceResolver knows how to convert a webhook service reference into an actual location.
	ServiceResolver webhook.ServiceResolver

WebhookConfig holds the configurations for outgoing webhooks


Path Synopsis

Jump to

Keyboard shortcuts

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