Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilePathProcessor ¶
FilePathProcessor is an interface for an entity which accepts file paths separated by the newline (`\n`) character and returns a slice of absolute paths.
func NewFilePathProcessor ¶
func NewFilePathProcessor(modifier pathutil.PathModifier, checker pathutil.PathChecker) FilePathProcessor
NewFilePathProcessor returns a structure which implements the FilePathProcessor interface. The implementation includes handling filepaths defined as environment variables, relative file paths, and absolute file paths. The implementation also includes making sure the filepath exists and is not a directory.
type FileRedactor ¶
FileRedactor is an interface for a structure which, given a slice of file paths and another slice of secrets can process the specified files to redact secrets from them.
func NewFileRedactor ¶
func NewFileRedactor(manager fileutil.FileManager) FileRedactor
NewFileRedactor returns a structure that implements the FileRedactor interface