Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyInput ¶
ApplyInput configures a scrub apply operation.
type ApplyResult ¶
ApplyResult holds the outcome of applying redactions.
func Apply ¶
func Apply(ctx context.Context, input ApplyInput) (ApplyResult, error)
Apply scrubs credential patterns from the given files, writing changes back to disk. Call Preview first to discover which files need scrubbing.
type PreviewInput ¶
PreviewInput configures a read-only scrub preview.
type PreviewResult ¶
type PreviewResult struct {
FilesScanned int
Files []string
Redactions int
CountsByType map[string]int
}
PreviewResult holds the outcome of previewing files for redactable content. Files lists the paths that contain redactable content.
func Preview ¶
func Preview(ctx context.Context, input PreviewInput) (PreviewResult, error)
Preview reads files and counts what would be redacted without writing.
Click to show internal directories.
Click to hide internal directories.