cleantemp

package
v3.63.5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

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

func MkdirTemp() (string, error)

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.

Jump to

Keyboard shortcuts

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