Help us shape the future of Go! Take the 2026 Go Developer Survey

artifact

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectFileHits

func DetectFileHits(content []byte, jobWebUrl string, jobName string, fileName string, archiveName string, enableSecretsVerification bool, hitTimeout time.Duration)

func HandleArchiveArtifact

func HandleArchiveArtifact(archivefileName string, content []byte, jobWebUrl string, jobName string, enableSecretsVerification bool, hitTimeout time.Duration)

func HandleArchiveArtifactWithDepth

func HandleArchiveArtifactWithDepth(archivefileName string, content []byte, jobWebUrl string, jobName string, enableSecretsVerification bool, hitTimeout time.Duration, depth int)

func IsArchive added in v1.5.0

func IsArchive(content []byte) bool

func ReportFinding

func ReportFinding(finding types.Finding, url string, jobName string, fileName string, archiveName string)

func ScanFile added in v1.5.0

func ScanFile(content []byte, filename string, opts ScanOptions) error

Types

type ScanOptions added in v1.5.0

type ScanOptions struct {
	VerifyCredentials bool
	HitTimeout        time.Duration
	GitLabURL         string
	ReportFinding     func(types.Finding, string, string)
}

Jump to

Keyboard shortcuts

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