replacer

package
v0.0.0-...-cb2ea0e Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(w io.WriteCloser, secrets []*engine.Secret) io.WriteCloser

New returns a replacer that wraps writer w.

Types

type Replacer

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

Replacer is an io.Writer that finds and masks sensitive data.

func (*Replacer) Close

func (r *Replacer) Close() error

Close closes the base writer.

func (*Replacer) Write

func (r *Replacer) Write(p []byte) (n int, err error)

Write writes p to the base writer. The method scans for any sensitive data in p and masks before writing.

Jump to

Keyboard shortcuts

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