apiserverk8s.io/apiserver/plugin/pkg/audit/log Index | Files

package log

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

Index

Constants

const (
	// FormatLegacy saves event in 1-line text format.
	FormatLegacy = "legacy"
	// FormatJson saves event in structured json format.
	FormatJson = "json"

	// PluginName is the name of this plugin, to be used in help and logs.
	PluginName = "log"
)

Variables

var AllowedFormats = []string{
	FormatLegacy,
	FormatJson,
}

AllowedFormats are the formats known by log backend.

Functions

func NewBackend

func NewBackend(out io.Writer, format string, groupVersion schema.GroupVersion) audit.Backend

Source Files

backend.go

Version
v0.31.0-alpha.3
Published
Jul 2, 2024
Platform
js/wasm
Imports
7 packages
Last checked
10 minutes ago

Tools for package owners.