pii

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(logs []string) ([]string, error)

Process process logs with the default filter an empty array of logs and an error instance is returned in the event of an error

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

Filter filters log fields using pii and modify all PII fields using f

func Default

func Default() (Filter, error)

Default creates a filter with default fields for istio

func NewFilter

func NewFilter(formatStr string, hash func(string) string, pii map[string]bool) (Filter, error)

NewFilter constructs a custom filter object

func (Filter) Process

func (f Filter) Process(logs []string) []string

Process logs and hash the filter, assumes that filter has valid fields

Jump to

Keyboard shortcuts

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