Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanTempArtifacts ¶ added in v3.63.3
func CleanTempArtifacts(ctx logContext.Context) error
CleanTempArtifacts deletes orphaned temp directories and files that do not contain running PID values.
func MkFilename ¶ added in v3.63.3
func MkFilename() string
Unlike MkdirTemp, we only want to generate the filename string. The tempfile creation in trufflehog we're interested in is generally handled by "github.com/trufflesecurity/disk-buffer-reader"
func MkdirTemp ¶
MkdirTemp returns a temporary directory path formatted as: trufflehog-<pid>-<randint>
func RunCleanupLoop ¶ added in v3.63.2
func RunCleanupLoop(ctx logContext.Context)
RunCleanupLoop runs a loop that cleans up orphaned directories every 15 seconds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.