protectoutput

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtectPhrase

func ProtectPhrase(phrase string)

ProtectPhrase will cause the provided phrase to be redacted (also base64 encoded values)

func RedactProtectedPhrases

func RedactProtectedPhrases(input string) string

RedactProtectedPhrases redacts all protected phrases in the input string (replace with ***)

Types

type FileProxyWriter

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

func NewProtectedWriter

func NewProtectedWriter(file *os.File, writer io.Writer) *FileProxyWriter

NewProtectedWriter proxies all output to stdout/stderr to omit/remove any kind of credentials from all logs

func (*FileProxyWriter) Write

func (w *FileProxyWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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