cleantemp

package
v3.78.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 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>

Types

This section is empty.

Jump to

Keyboard shortcuts

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