redact

package
v1.1.0-beta.0...-2ec3e3e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRedact

func InitRedact(redactLog bool)

InitRedact inits the enableRedactLog

func Key

func Key(key []byte) string

Key receives a key return omitted information if redact log enabled

func NeedRedact

func NeedRedact() bool

NeedRedact returns whether to redact log

func String

func String(arg string) string

String receives string argument and return omitted information if redact log enabled

Types

type TaskInfoRedacted

type TaskInfoRedacted struct {
	Info *backup.StreamBackupTaskInfo
}

TaskInfoRedacted is a wrapper of backup.StreamBackupTaskInfo to redact sensitive information

func (TaskInfoRedacted) String

func (t TaskInfoRedacted) String() string

String returns the redacted string of the task info

Jump to

Keyboard shortcuts

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