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

package enforced

import "k8s.io/apiserver/plugin/pkg/audit/dynamic/enforced"


Package Files



const PluginName = "enforced"

PluginName is the name reported in error metrics.

func NewBackend Uses

func NewBackend(delegate audit.Backend, p policy.Checker) audit.Backend

NewBackend returns an enforced audit backend that wraps delegate backend. Enforced backend automatically runs and shuts down the delegate backend.

type Backend Uses

type Backend struct {
    // contains filtered or unexported fields

Backend filters audit events according to the policy trimming them as necessary to match the level

func (Backend) ProcessEvents Uses

func (b Backend) ProcessEvents(events ...*auditinternal.Event) bool

ProcessEvents enforces policy on a shallow copy of the given event dropping any sections that don't conform

func (Backend) Run Uses

func (b Backend) Run(stopCh <-chan struct{}) error

Run the delegate backend

func (Backend) Shutdown Uses

func (b Backend) Shutdown()

Shutdown the delegate backend

func (Backend) String Uses

func (b Backend) String() string

String returns a string representation of the backend

Package enforced imports 5 packages (graph) and is imported by 2 packages. Updated 2019-09-30. Refresh now. Tools for package owners.