dynamic

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "dynamic"

PluginName is the name reported in error metrics.

Variables

This section is empty.

Functions

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

Types

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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