sanitization

package
v0.23.17 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SanitizingFilter

type SanitizingFilter struct{}

SanitizingFilter implements the LogFilter interface from klog with a set of functions that inspects the arguments with the datapol library

func (*SanitizingFilter) Filter

func (sf *SanitizingFilter) Filter(args []interface{}) []interface{}

Filter is the filter function for the non-formatting logging functions of klog.

func (*SanitizingFilter) FilterF

func (sf *SanitizingFilter) FilterF(fmt string, args []interface{}) (string, []interface{})

FilterF is the filter function for the formatting logging functions of klog

func (*SanitizingFilter) FilterS

func (sf *SanitizingFilter) FilterS(msg string, keysAndValues []interface{}) (string, []interface{})

FilterS is the filter for the structured logging functions of klog.

Jump to

Keyboard shortcuts

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